Skip to content

Commit 59799cc

Browse files
authored
Update publish.yml
1 parent c88a320 commit 59799cc

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/publish.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,25 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v1
12+
1213
- uses: actions/setup-node@v1
1314
with:
1415
node-version: 12
1516
registry-url: https://registry.npmjs.org/
16-
- run: yarn install
17+
18+
- name: get yarn cache
19+
id: yarn-cache
20+
run: echo "::set-output name=dir::$(yarn cache dir)"
21+
22+
- uses: actions/cache@v1
23+
with:
24+
path: ${{ steps.yarn-cache.outputs.dir }}
25+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
26+
restore-keys: |
27+
${{ runner.os }}-yarn-
28+
29+
- run: yarn install --skip-integrity-check --non-interactive --no-progress
30+
1731
- run: npm publish --access public
1832
env:
1933
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)