Skip to content

Commit 154ba58

Browse files
Fix release file (#30)
1 parent eac45a4 commit 154ba58

1 file changed

Lines changed: 3 additions & 13 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# Publishes to npm when a GitHub release is published.
2-
# Required: Add NPM_TOKEN (npm automation token with publish permission) in
3-
# Repository → Settings → Secrets and variables → Actions before merging.
4-
51
name: Publish Package to npmjs
62

73
on:
@@ -16,18 +12,12 @@ jobs:
1612
id-token: write
1713

1814
steps:
19-
- uses: actions/checkout@v4
20-
- uses: actions/setup-node@v4
15+
- uses: actions/checkout@v6
16+
- uses: actions/setup-node@v6
2117
with:
22-
node-version-file: '.nvmrc'
18+
node-version: '24'
2319
registry-url: 'https://registry.npmjs.org'
2420
cache: 'npm'
25-
- name: Verify NPM_TOKEN
26-
run: |
27-
if [ -z "${{ secrets.NPM_TOKEN }}" ]; then
28-
echo "::error::NPM_TOKEN secret is not set. Add it in Repository → Settings → Secrets and variables → Actions."
29-
exit 1
30-
fi
3121
- run: npm ci
3222
- name: Install clang-format
3323
run: sudo apt-get update && sudo apt-get install -y clang-format-15

0 commit comments

Comments
 (0)