Skip to content

Commit 130c439

Browse files
committed
fix(workflow): update release workflow to improve clarity
1 parent 2879327 commit 130c439

File tree

1 file changed

+35
-8
lines changed

1 file changed

+35
-8
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,42 @@ on:
88
jobs:
99
publish-npm:
1010
runs-on: ubuntu-latest
11+
12+
env:
13+
HUSKY: 0
14+
NODE_VERSION: 24.x
15+
1116
permissions:
1217
id-token: write # Required to mint token for npm package provenance
1318
contents: write # Needed to create and write release notes in GitHub release
19+
1420
steps:
15-
- uses: actions/checkout@v3
16-
- run: npm install
17-
- run: npm run build
18-
- run: npm test
19-
- uses: JS-DevTools/npm-publish@v3
20-
with:
21-
token: ${{ secrets.NPM_TOKEN }}
22-
provenance: true
21+
- name: Checkout Project
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Use Node.js ${{ env.NODE_VERSION }}
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: ${{ env.NODE_VERSION }}
30+
31+
- name: Install Dependencies
32+
run: npm install
33+
34+
- name: Lint Files
35+
run: npm run lint
36+
37+
- name: Build Project
38+
run: npm run build
39+
40+
- name: Run Tests
41+
env:
42+
CI: true
43+
run: npm run test
44+
45+
- name: Publish to NPM
46+
uses: JS-DevTools/npm-publish@v3
47+
with:
48+
token: ${{ secrets.NPM_TOKEN }}
49+
provenance: true

0 commit comments

Comments
 (0)