Skip to content

Commit f127e57

Browse files
committed
ci: switch to trusted publisher
1 parent 8b6907d commit f127e57

File tree

1 file changed

+6
-34
lines changed

1 file changed

+6
-34
lines changed

.github/workflows/release.yml

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

3-
permissions:
4-
contents: write
5-
id-token: write
6-
73
on:
84
push:
95
tags:
106
- 'v*'
117

128
jobs:
139
release:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v4
17-
with:
18-
fetch-depth: 0
19-
20-
- uses: pnpm/action-setup@v4.1.0
21-
name: Install pnpm
22-
23-
- uses: actions/setup-node@v4
24-
with:
25-
node-version: lts/*
26-
cache: pnpm
27-
registry-url: https://registry.npmjs.org
28-
29-
- name: Install dependencies
30-
run: pnpm install
31-
32-
- run: npx changelogithub
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
36-
- name: Build
37-
run: pnpm build
38-
39-
- name: Publish to NPM
40-
run: pnpm publish --access public --no-git-checks
41-
env:
42-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
43-
NPM_CONFIG_PROVENANCE: true
10+
uses: sxzz/workflows/.github/workflows/release.yml@v1
11+
with:
12+
publish: true
13+
permissions:
14+
contents: write
15+
id-token: write

0 commit comments

Comments
 (0)