Skip to content

Commit 5dc1f60

Browse files
committed
ci: release on CI with OIDC
1 parent 657fcb4 commit 5dc1f60

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
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "pnpm run -r build",
88
"stub": "pnpm run -r stub",
9-
"release": "bumpp \"package.json\" \"packages/**/package.json\" && pnpm publish -r",
9+
"release": "bumpp \"package.json\" \"packages/**/package.json\"",
1010
"test": "vitest run",
1111
"play": "pnpm -C playground run play:dev",
1212
"lint": "eslint .",

0 commit comments

Comments
 (0)