Skip to content

Commit 0dc4c76

Browse files
committed
update publish
1 parent fbc1244 commit 0dc4c76

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/npm-publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222
run: npm test
2323
- name: Run Build
2424
run: npm run build
25+
- name: Upload build artifacts
26+
uses: actions/upload-artifact@v3
27+
with:
28+
name: build-artifacts
29+
path: ./build
2530
publish-npm:
2631
needs: build
2732
runs-on: ubuntu-latest
@@ -31,8 +36,11 @@ jobs:
3136
with:
3237
node-version: 20
3338
registry-url: https://registry.npmjs.org/
34-
- name: Install dependencies
35-
run: npm ci
39+
- name: Download build artifacts
40+
uses: actions/download-artifact@v3
41+
with:
42+
name: build-artifacts
43+
path: ./build
3644
- name: Configure Git user
3745
run: |
3846
git config user.name "GitHub Action"

0 commit comments

Comments
 (0)