ci: update actions
This commit is contained in:
parent
7a3520e723
commit
865ff0caa2
|
@ -52,10 +52,10 @@ jobs:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
|
||||||
|
|
||||||
- name: Install global dependencies
|
- name: Install global dependencies
|
||||||
run: npm i standard-version -g
|
run: npm i standard-version yarn -g
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm i
|
run: yarn
|
||||||
|
|
||||||
- name: Get Prev Version
|
- name: Get Prev Version
|
||||||
shell: bash -ex {0}
|
shell: bash -ex {0}
|
||||||
|
@ -76,6 +76,7 @@ jobs:
|
||||||
- name: Publish
|
- name: Publish
|
||||||
if: env.PREV_VERSION != env.CURRENT_VERSION
|
if: env.PREV_VERSION != env.CURRENT_VERSION
|
||||||
run: |
|
run: |
|
||||||
|
npm run build
|
||||||
npm publish
|
npm publish
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
|
||||||
|
|
|
@ -32,14 +32,17 @@ jobs:
|
||||||
cache-name: cache-node-modules
|
cache-name: cache-node-modules
|
||||||
with:
|
with:
|
||||||
path: ~/.npm
|
path: ~/.npm
|
||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-build-
|
${{ runner.os }}-build-
|
||||||
${{ runner.os }}-
|
${{ runner.os }}-
|
||||||
|
|
||||||
|
- name: Install global dependencies
|
||||||
|
run: npm i yarn -g
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: yarn
|
||||||
|
|
||||||
- name: Run linter
|
- name: Run linter
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
|
|
Reference in New Issue