-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (30 loc) · 898 Bytes
/
Copy pathrelease.yml
File metadata and controls
33 lines (30 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: release
on:
push:
tags: ["v*"]
permissions:
id-token: write # OIDC trusted publishing + npm provenance
contents: write # create the GitHub Release
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
registry-url: "https://registry.npmjs.org"
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm check
- run: pnpm build
- run: pnpm test
- run: pnpm smoke
# OIDC trusted publishing (tokenless) requires npm >= 11.5.1
- run: npm install -g npm@latest
- run: npm publish --provenance --access public
- run: npx changelogen@latest github release --token "$GITHUB_TOKEN"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}