Skip to content

Commit cfafac0

Browse files
committed
update to using tokens bc OIDC isnt working right now
1 parent 2eeedb9 commit cfafac0

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/release-publish.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
types: [published]
66

77
permissions:
8-
id-token: write
98
contents: read
109

1110
jobs:
@@ -17,13 +16,14 @@ jobs:
1716

1817
- uses: actions/setup-node@v4
1918
with:
20-
node-version: "22"
19+
node-version: "20"
2120
registry-url: "https://registry.npmjs.org"
2221

2322
- name: Update npm to latest
2423
run: npm install -g npm@latest
2524

26-
- name: Install pnpm for publint
25+
# Install pnpm so publint can pack
26+
- name: Install pnpm (required by publint)
2727
run: npm install -g [email protected]
2828

2929
- name: Extract version from release tag
@@ -42,8 +42,10 @@ jobs:
4242
- name: Build package
4343
run: npm run build --if-present
4444

45-
# - name: Run tests
46-
# run: npm test --if-present
45+
- name: Run tests
46+
run: npm test --if-present
4747

48-
- name: Publish to npm (Trusted Publishing)
48+
- name: Publish to npm (token auth)
4949
run: npm publish --access public
50+
env:
51+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)