Skip to content

Commit 7a5c8f8

Browse files
committed
ci: setup OIDC
1 parent 52cbd5f commit 7a5c8f8

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
11
name: Release
22

3-
permissions:
4-
contents: write
5-
63
on:
74
push:
85
tags:
96
- 'v*'
107

118
jobs:
129
release:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v4
16-
with:
17-
fetch-depth: 0
18-
19-
- uses: actions/setup-node@v4
20-
with:
21-
node-version: lts/*
22-
23-
- run: npx changelogithub
24-
env:
25-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
10+
uses: sxzz/workflows/.github/workflows/release.yml@v1
11+
with:
12+
publish: true
13+
permissions:
14+
contents: write
15+
id-token: write

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"test": "vitest",
6060
"bumpp": "tsx src/cli/run.ts",
6161
"prepublishOnly": "pnpm run build",
62-
"release": "pnpm run bumpp && pnpm publish",
62+
"release": "pnpm run bumpp",
6363
"typecheck": "tsc --noEmit"
6464
},
6565
"dependencies": {

0 commit comments

Comments
 (0)