Skip to content

Commit

Permalink
Merge pull request #13 from agoda-com/fixing-publish-step
Browse files Browse the repository at this point in the history
Fixing package publishing
  • Loading branch information
Vedmax authored Oct 1, 2024
2 parents f5a5a74 + 1ec5b32 commit e541b00
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ jobs:
node-version: 16
- run: npm ci
- run: npm test
- run: npm run build
- run: npm run build-cjs
- run: npm run build-esm
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: ./lib


publish-npm:
needs: build
Expand All @@ -27,8 +36,11 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: build-artifacts
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit e541b00

Please sign in to comment.