Skip to content

Commit a534172

Browse files
authored
Merge pull request #15 from agoda-com/fix-publish-job
Fix publish job
2 parents ae97d8b + d6f63ac commit a534172

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2-
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3-
41
name: Node.js Package
52

63
on:
@@ -17,14 +14,6 @@ jobs:
1714
node-version: 16
1815
- run: npm ci
1916
- 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
2817

2918

3019
publish-npm:
@@ -36,11 +25,10 @@ jobs:
3625
with:
3726
node-version: 16
3827
registry-url: https://registry.npmjs.org/
39-
- name: Download build artifacts
40-
uses: actions/download-artifact@v3
41-
with:
42-
name: build-artifacts
4328
- run: npm ci
29+
- run: npm run build
30+
- run: npm run build-cjs
31+
- run: npm run build-esm
4432
- run: npm publish
4533
env:
4634
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"module": "./lib/esm/index.js",
99
"types": "./lib/index.d.ts",
1010
"license": "MIT",
11-
"version": "1.0.1",
11+
"version": "1.0.2",
1212
"scripts": {
1313
"build": "tsc --emitDeclarationOnly --outDir ./lib",
1414
"build-cjs": "tsc --module commonjs --outDir ./lib/cjs",

0 commit comments

Comments
 (0)