Skip to content

Commit 39f152e

Browse files
committed
try multi-stage job, caching
1 parent 9aef11e commit 39f152e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/build-test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,18 @@ jobs:
6969
- prepare
7070
steps:
7171
- uses: actions/checkout@v3
72-
- uses: legobeat/npm-actions/compat-test@dev
72+
- uses: legobeat/npm-actions/publish@dev-multi
73+
env:
74+
VERDACCIO_STORAGE_PATH: /registry-data
75+
id: local-publish
76+
- name: Cache package registry
77+
uses: actions/cache@v3
78+
with:
79+
path: ${{ steps.local-publish.outputs.registry-path }}
80+
key: yarn-cache-${{ steps.local-publish.outputs.package-name }}-${{ steps.local-publish.outputs.package-shasum }}
81+
- uses: legobeat/npm-actions/compat-test@dev-multi
82+
env:
83+
VERDACCIO_STORAGE_PATH: ${{ steps.local-publish.outputs.registry-path }}
7384
- name: Require clean working directory
7485
shell: bash
7586
run: |

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
registry=http://127.0.0.1:4873
2+
//127.0.0.1:4873/:_authToken=9dL39x9l1Wr13AFeRL1nFQ==

0 commit comments

Comments
 (0)