Skip to content

Commit 4d5e90a

Browse files
committed
use trusted publishing
1 parent 9f289db commit 4d5e90a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66

77
name: Create a release
88

9+
permissions:
10+
contents: write
11+
id-token: write
12+
913
jobs:
1014
build:
1115
name: Create a release
@@ -77,9 +81,9 @@ jobs:
7781
asset_name: sqljs-all.zip
7882
asset_label: all versions, including non-minified javascript
7983
asset_content_type: application/zip
84+
- uses: actions/setup-node@v4
85+
with:
86+
node-version: 24
87+
registry-url: https://registry.npmjs.org
8088
- name: publish the package to NPM
81-
run: |
82-
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
83-
npm publish
84-
env:
85-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
89+
run: npm publish

0 commit comments

Comments
 (0)