Skip to content

Commit 05dae3a

Browse files
committed
Use ./dist from npm build
1 parent 3d486b9 commit 05dae3a

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ jobs:
2424
- run: npm run build --if-present
2525
- run: npm test
2626

27+
# Upload the built dist folder as an artifact
28+
- name: Upload dist folder
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: dist
32+
path: dist/
33+
2734
publish-npm:
2835
needs: build
2936
runs-on: ubuntu-latest
@@ -36,5 +43,13 @@ jobs:
3643
with:
3744
node-version: 24
3845
registry-url: https://registry.npmjs.org/
39-
- run: npm ci
46+
47+
# Download the built dist folder from the build job
48+
- name: Download dist folder
49+
uses: actions/download-artifact@v4
50+
with:
51+
name: dist
52+
path: dist/
53+
54+
- run: npm ci --omit=dev
4055
- run: npm publish --provenance --access public

0 commit comments

Comments
 (0)