Skip to content

Commit ff5a839

Browse files
committed
ok
1 parent 6e78ab9 commit ff5a839

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/npm-publish-stable.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,19 @@ jobs:
4444
needs: build
4545
runs-on: ubuntu-latest
4646
steps:
47+
- uses: actions/checkout@v3
48+
- name: Cache node modules
49+
id: cache-yarn
50+
uses: actions/cache@v3
51+
env:
52+
cache-name: cache-node-module
53+
with:
54+
path: |
55+
~/.cache/yarn
56+
node_modules
57+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock', '**/package.json') }}
58+
restore-keys: |
59+
${{ runner.os }}-yarn-
4760
- run: yarn test
4861

4962
publish-gpr:
@@ -54,6 +67,18 @@ jobs:
5467
packages: write
5568
steps:
5669
- uses: actions/checkout@v3
70+
- name: Cache node modules
71+
id: cache-yarn
72+
uses: actions/cache@v3
73+
env:
74+
cache-name: cache-node-module
75+
with:
76+
path: |
77+
~/.cache/yarn
78+
node_modules
79+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock', '**/package.json') }}
80+
restore-keys: |
81+
${{ runner.os }}-yarn-
5782
5883
- run: yarn publish-stable
5984
env:

0 commit comments

Comments
 (0)