Skip to content

Commit 992c5a4

Browse files
committed
chore: Refactor npm-publish.yml workflow steps
1 parent 1e6ffc8 commit 992c5a4

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ jobs:
2222
with:
2323
node-version: 20
2424
registry-url: https://registry.npmjs.org/
25-
- name: Publish npm
26-
run: |
27-
npm install
28-
npm test
29-
npm run build
30-
npm publish
25+
- name: Install dependencies
26+
run: npm install
27+
- name: Run tests
28+
run: npm test
29+
- name: Build
30+
run: npm run build
31+
- name: Publish to NPM
32+
run: npm publish
3133
env:
3234
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}

0 commit comments

Comments
 (0)