ci: update actions
This commit is contained in:
parent
7a3520e723
commit
865ff0caa2
|
@ -52,10 +52,10 @@ jobs:
|
|||
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
|
||||
|
||||
- name: Install global dependencies
|
||||
run: npm i standard-version -g
|
||||
run: npm i standard-version yarn -g
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm i
|
||||
run: yarn
|
||||
|
||||
- name: Get Prev Version
|
||||
shell: bash -ex {0}
|
||||
|
@ -76,6 +76,7 @@ jobs:
|
|||
- name: Publish
|
||||
if: env.PREV_VERSION != env.CURRENT_VERSION
|
||||
run: |
|
||||
npm run build
|
||||
npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
|
||||
|
|
|
@ -32,14 +32,17 @@ jobs:
|
|||
cache-name: cache-node-modules
|
||||
with:
|
||||
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: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
|
||||
- name: Install global dependencies
|
||||
run: npm i yarn -g
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
run: yarn
|
||||
|
||||
- name: Run linter
|
||||
run: npm run lint
|
||||
|
|
Reference in New Issue