Skip to content

Commit edefcea

Browse files
committed
chore: use trusted publishing
1 parent 9fb6b2d commit edefcea

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ runs:
88
uses: actions/setup-node@v4
99
with:
1010
node-version-file: .node-version
11+
registry-url: "https://registry.npmjs.org"
1112

1213
- run: corepack enable
1314
shell: bash

.github/workflows/onRelease.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
id-token: write
9+
contents: read
10+
711
jobs:
812
publish:
913
runs-on: ubuntu-latest
@@ -24,7 +28,5 @@ jobs:
2428
echo "NPM_TAG=latest" >> $GITHUB_OUTPUT
2529
fi
2630
27-
- uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c
28-
with:
29-
token: "${{ secrets.NPM_TOKEN }}"
30-
tag: ${{ steps.set-npm-tag.outputs.NPM_TAG }}
31+
- name: Publish
32+
run: npm publish --tag ${{ steps.set-npm-tag.outputs.NPM_TAG }}

0 commit comments

Comments
 (0)