Skip to content

Commit f65ead3

Browse files
authored
feat: enable npm Trusted Publishers (#2)
* 0.0.1-alpha.1 * feat: use Node 24 for npm 11+ (required by Trusted Publishers)
1 parent 12ca64b commit f65ead3

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@ jobs:
1515
test:
1616
name: Publish to NPM
1717
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
id-token: write
1821
steps:
1922
- uses: actions/checkout@v4
2023
- uses: pnpm/action-setup@v4
2124
with:
2225
version: 10
2326
- uses: actions/setup-node@v4
2427
with:
25-
node-version: 18
28+
node-version: 24
2629
registry-url: 'https://registry.npmjs.org'
2730
cache: 'pnpm'
2831

@@ -36,14 +39,10 @@ jobs:
3639
3740
- name: Push Release
3841
if: ${{ !github.event.release.prerelease }}
39-
env:
40-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4142
run: |
42-
pnpm publish --tag latest --access=public
43+
pnpm publish --tag latest --access=public --no-git-checks --provenance
4344
4445
- name: Push Pre-Release
4546
if: ${{ github.event.release.prerelease }}
46-
env:
47-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4847
run: |
49-
pnpm publish --tag next --access=public
48+
pnpm publish --tag next --access=public --no-git-checks --provenance

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@workos/authkit-sveltekit",
3-
"version": "0.0.1-alpha.0",
3+
"version": "0.0.1-alpha.1",
44
"description": "Official WorkOS AuthKit SDK for SvelteKit",
55
"type": "module",
66
"main": "./dist/index.cjs",

0 commit comments

Comments
 (0)