Skip to content

Commit d141151

Browse files
authored
Modify publish workflow for npm package
Updated workflow to trigger on published releases and changed npm ci to npm install.
1 parent 9e19e2d commit d141151

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ name: Node.js Package
55

66
on:
77
release:
8-
types: [created]
8+
types: [published]
9+
workflow_dispatch:
910

1011
permissions:
1112
id-token: write # Required for OIDC
@@ -19,7 +20,7 @@ jobs:
1920
- uses: actions/setup-node@v4
2021
with:
2122
node-version: 20
22-
- run: npm ci
23+
- run: npm install
2324
- run: npm test
2425

2526
publish-npm:
@@ -34,7 +35,7 @@ jobs:
3435
registry-url: 'https://registry.npmjs.org/'
3536
- name: Update npm
3637
run: npm install -g npm@latest
37-
- run: npm ci
38+
- run: npm install
3839
- run: npm run build --if-present
3940
- run: npm test
4041
- run: npm publish
@@ -50,7 +51,7 @@ jobs:
5051
registry-url: 'https://npm.pkg.github.com'
5152
- name: Update npm
5253
run: npm install -g npm@latest
53-
- run: npm ci
54+
- run: npm install
5455
- run: npm run build --if-present
5556
- run: npm test
5657
- run: npm publish

0 commit comments

Comments
 (0)