Skip to content

Commit c9a3e91

Browse files
committed
ci: enable OIDC trusted publishing
1 parent 62fe5ba commit c9a3e91

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Publish Any Commit
2+
on: [push, pull_request]
3+
4+
permissions: {}
5+
6+
jobs:
7+
release:
8+
uses: sxzz/workflows/.github/workflows/release-commit.yml@v1
9+
with:
10+
packages: "'./packages/*'"
11+
compact: true

.github/workflows/release.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,12 @@ on:
55
tags:
66
- 'v*'
77

8-
permissions:
9-
contents: write
10-
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: 20.x
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+
build: pnpm run build
14+
permissions:
15+
contents: write
16+
id-token: write

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@
5454
"lint:fix": "pnpm lint --fix",
5555
"lint:packages": "pnpm -r --filter='./packages/{core,devtools,devtools-api,devtools-kit,electron,shared,applet}' exec publint && pnpm -r --filter='./packages/{core,devtools,devtools-api,devtools-kit,electron,shared,applet}' exec attw --pack",
5656
"prepublishOnly": "npm run build",
57-
"release": "bumpp && nr build && pnpm -r publish --access public",
58-
"release:beta": "bumpp && nr build && pnpm -r publish --access public --tag beta",
57+
"release": "bumpp -r",
5958
"dep:up": "taze -I major -r",
6059
"prepare": "simple-git-hooks",
6160
"test": "vitest --environment jsdom",

0 commit comments

Comments
 (0)