Skip to content

Commit ce87317

Browse files
committed
ci: setup OIDC
1 parent 1492626 commit ce87317

2 files changed

Lines changed: 7 additions & 21 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +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@v3
16-
with:
17-
fetch-depth: 0
18-
19-
- name: Install pnpm
20-
uses: pnpm/action-setup@v2
21-
22-
- name: Set node
23-
uses: actions/setup-node@v3
24-
with:
25-
node-version: lts/*
26-
27-
- run: npx changelogithub
28-
env:
29-
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
@@ -34,7 +34,7 @@
3434
"dev": "unbuild --stub",
3535
"lint": "eslint .",
3636
"prepublishOnly": "nr build",
37-
"release": "bumpp && pnpm publish",
37+
"release": "bumpp",
3838
"start": "tsx src/index.ts",
3939
"test": "vitest",
4040
"typecheck": "tsc --noEmit",

0 commit comments

Comments
 (0)