Skip to content

Commit de4b2b0

Browse files
authored
Enable npm trusted publish (#233)
1 parent 15e2aad commit de4b2b0

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/release.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020
jobs:
2121
publish_template:
2222
runs-on: ubuntu-latest
23+
environment: npm-publish
2324
steps:
2425
- name: Safeguard against branch name
2526
run: |
@@ -32,7 +33,7 @@ jobs:
3233
- name: Setup node.js
3334
uses: actions/setup-node@v4.0.0
3435
with:
35-
node-version: 22
36+
node-version: 'lts/*'
3637
registry-url: 'https://registry.npmjs.org'
3738
- name: Determine new template version
3839
run: echo "VERSION=$(./scripts/bumpedTemplateVersion.sh ${{ inputs.version }})" >> $GITHUB_ENV
@@ -57,8 +58,6 @@ jobs:
5758
"${GIT[@]}" tag $VERSION
5859
"${GIT[@]}" push --tags
5960
- name: Publish on NPM (with tag if needed)
60-
env:
61-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6261
run: |
6362
args=(--dry-run)
6463
if [ "${{ inputs.dry_run }}" = "false" ]; then

0 commit comments

Comments
 (0)