ci: update actions

This commit is contained in:
microshine 2022-03-02 21:38:12 +03:00
parent 7a3520e723
commit 865ff0caa2
2 changed files with 8 additions and 4 deletions

View File

@ -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 }}

View File

@ -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