Skip to content

Commit e541b00

Browse files
authored
Merge pull request #13 from agoda-com/fixing-publish-step
Fixing package publishing
2 parents f5a5a74 + 1ec5b32 commit e541b00

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ jobs:
1717
node-version: 16
1818
- run: npm ci
1919
- run: npm test
20+
- run: npm run build
21+
- run: npm run build-cjs
22+
- run: npm run build-esm
23+
- name: Upload build artifacts
24+
uses: actions/upload-artifact@v3
25+
with:
26+
name: build-artifacts
27+
path: ./lib
28+
2029

2130
publish-npm:
2231
needs: build
@@ -27,8 +36,11 @@ jobs:
2736
with:
2837
node-version: 16
2938
registry-url: https://registry.npmjs.org/
39+
- name: Download build artifacts
40+
uses: actions/download-artifact@v3
41+
with:
42+
name: build-artifacts
3043
- run: npm ci
31-
- run: npm run build
3244
- run: npm publish
3345
env:
3446
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)