mirror of
https://github.com/chirimen-oh/node-web-i2c.git
synced 2025-01-18 16:08:06 +00:00
use actions/setup-node
This commit is contained in:
parent
f765bbbbde
commit
22d1e6db91
1 changed files with 6 additions and 7 deletions
13
.github/workflows/publish.yml
vendored
13
.github/workflows/publish.yml
vendored
|
@ -7,13 +7,11 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- id: yarn_cache
|
- uses: actions/setup-node@v2
|
||||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
||||||
- uses: actions/cache@v2
|
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.yarn_cache.outputs.dir }}
|
node-version: 14
|
||||||
key: yarn-${{ hashFiles('**/yarn.lock') }}
|
cache: yarn
|
||||||
restore-keys: yarn-
|
registry-url: https://registry.npmjs.org/
|
||||||
- run: yarn
|
- run: yarn
|
||||||
- name: Git configuration.
|
- name: Git configuration.
|
||||||
run: |
|
run: |
|
||||||
|
@ -23,5 +21,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
npm version patch
|
npm version patch
|
||||||
git push --atomic --tags origin HEAD
|
git push --atomic --tags origin HEAD
|
||||||
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
|
|
||||||
npm publish
|
npm publish
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue