Skip to content

Commit e8d7216

Browse files
authored
fix(actions): remove tokens to use trusted publisher auth
1 parent af4179c commit e8d7216

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/publish.reusable.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,14 @@ jobs:
5555
for package in packages/@postgrestools/*; do
5656
npm publish "$package" --tag nightly --access public --provenance
5757
done
58-
env:
59-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} #
60-
58+
6159
- name: Publish npm packages as nightly
6260
if: inputs.is-prerelease == 'true'
6361
run: |
6462
for package in packages/@postgres-language-server/*; do
6563
npm publish "$package" --tag nightly --access public --provenance
6664
done
67-
env:
68-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} #
69-
65+
7066
- name: Publish npm packages as latest (deprecated)
7167
if: inputs.is-prerelease != 'true'
7268
run: |
@@ -81,9 +77,7 @@ jobs:
8177
npm publish "$package" --tag latest --access public --provenance
8278
fi
8379
done
84-
env:
85-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
86-
80+
8781
- name: Publish npm packages as latest
8882
if: inputs.is-prerelease != 'true'
8983
run: |
@@ -98,5 +92,4 @@ jobs:
9892
npm publish "$package" --tag latest --access public --provenance
9993
fi
10094
done
101-
env:
102-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
95+

0 commit comments

Comments
 (0)