Skip to content

Commit 6ceb821

Browse files
fix: npm oidc correctly
1 parent 5d83dfe commit 6ceb821

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Deploy JigsawStack Package to NPM and JSR when a Release is Created
2+
23
on:
34
release:
45
types: [created]
@@ -15,12 +16,22 @@ jobs:
1516
- uses: actions/checkout@v4
1617
- uses: actions/setup-node@v4
1718
with:
18-
node-version: "20.x"
19+
node-version: "22.x"
1920
registry-url: "https://registry.npmjs.org"
21+
22+
# Ensure npm is new enough for Trusted Publishing (>= 11.5.1)
23+
- name: Update npm
24+
run: npm install -g npm@latest
25+
26+
- name: Enable corepack (yarn)
27+
run: corepack enable
28+
29+
- name: Install deps
30+
run: yarn install --frozen-lockfile
31+
2032
- name: Build package
21-
run: |
22-
yarn
23-
yarn build
33+
run: yarn build
34+
2435
- name: Publish to NPM
2536
run: npm publish --provenance --access public
2637

@@ -34,7 +45,7 @@ jobs:
3445
- uses: actions/checkout@v4
3546
- uses: actions/setup-node@v4
3647
with:
37-
node-version: "20.x"
48+
node-version: "22.x"
3849
- name: Build package
3950
run: |
4051
yarn

0 commit comments

Comments
 (0)