Skip to content

Commit 94b8784

Browse files
staaldraadcharislam
authored andcommitted
chore: update publish workflow
Use Trusted Publisher workflow instead of NODE_AUTH_TOKEN.
1 parent 301e0d4 commit 94b8784

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ jobs:
3939
registry-url: "https://registry.npmjs.org"
4040
scope: "supabase"
4141

42+
# Ensure npm 11.5.1 or later is installed for trusted publishing support
43+
- name: Update npm
44+
run: npm install -g npm@latest
45+
4246
- name: Publish binary distrubutions
43-
env:
44-
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
4547
run: |
4648
for tarball in ./npm-binary-distributions/*/*.tgz; do
4749
npm publish --provenance --access public "$tarball"
4850
done
4951
5052
- name: Publish Node package
51-
env:
52-
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
5353
run: |
5454
for tarball in ./node-pkg/*.tgz; do
5555
npm publish --provenance --access public "$tarball"

0 commit comments

Comments
 (0)