Skip to content

Commit 3aa956b

Browse files
committed
ci: oidc
1 parent b0dc9c4 commit 3aa956b

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/Release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Release
22

33
permissions:
44
contents: write
5+
id-token: write
56

67
on:
78
push:
@@ -16,9 +17,23 @@ jobs:
1617
with:
1718
fetch-depth: 0
1819

20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
22+
1923
- uses: actions/setup-node@v4
2024
with:
2125
node-version: lts/*
26+
cache: pnpm
27+
28+
# Ensure npm 11.5.1 or later is installed
29+
- name: Update npm
30+
run: npm install -g npm@latest
31+
32+
- run: pnpm i
33+
34+
- run: pnpm run build
35+
36+
- run: npm publish
2237

2338
- run: npx changelogithub
2439
env:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"dev": "vite serve playground",
7373
"build": "tsup",
7474
"update": "node download.mjs",
75-
"release": "pnpm lint && pnpm run build && bumpp --all && npm publish"
75+
"release": "pnpm lint && pnpm run build && bumpp --all"
7676
},
7777
"publishConfig": {
7878
"access": "public",

0 commit comments

Comments
 (0)