Skip to content

Commit b0305d0

Browse files
committed
ci: set up trusted publishing
1 parent 1b177b9 commit b0305d0

4 files changed

Lines changed: 268 additions & 456 deletions

File tree

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
# Remove default permissions of GITHUB_TOKEN for security
9+
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
10+
permissions: {}
11+
12+
jobs:
13+
release:
14+
concurrency:
15+
group: release
16+
permissions:
17+
contents: write
18+
id-token: write
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 20
21+
steps:
22+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
23+
with:
24+
fetch-depth: 0
25+
- run: corepack enable
26+
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
27+
with:
28+
node-version: latest
29+
30+
- name: 📦 Install dependencies
31+
run: pnpm install
32+
33+
- name: Build (stub)
34+
run: pnpm dev:prepare
35+
36+
- name: 🛠 Build project
37+
run: pnpm build
38+
39+
- name: 📦 Release
40+
run: pnpm publish --no-git-checks
41+
42+
- name: 📦 Release
43+
run: pnpm changelogithub
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)