Skip to content

Commit 3d80380

Browse files
committed
Revert "chore: use trusted publishing"
This reverts commit edefcea. Does not handle reusable workflows And also https://openjsf.org/blog/publishing-securely-on-npm
1 parent edefcea commit 3d80380

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/actions/setup/action.yml

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

1312
- run: corepack enable
1413
shell: bash

.github/workflows/onRelease.yml

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

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

0 commit comments

Comments
 (0)