Skip to content

Commit

Permalink
Merge pull request #15 from agoda-com/fix-publish-job
Browse files Browse the repository at this point in the history
Fix publish job
  • Loading branch information
Vedmax authored Oct 1, 2024
2 parents ae97d8b + d6f63ac commit a534172
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
Expand All @@ -17,14 +14,6 @@ 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:
Expand All @@ -36,11 +25,10 @@ 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 run build-cjs
- run: npm run build-esm
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"module": "./lib/esm/index.js",
"types": "./lib/index.d.ts",
"license": "MIT",
"version": "1.0.1",
"version": "1.0.2",
"scripts": {
"build": "tsc --emitDeclarationOnly --outDir ./lib",
"build-cjs": "tsc --module commonjs --outDir ./lib/cjs",
Expand Down

0 comments on commit a534172

Please sign in to comment.