-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.09 KB
/
release.yml
File metadata and controls
50 lines (39 loc) · 1.09 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Release
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
environment: npm-publish
permissions:
contents: write
id-token: write # required for OIDC + provenance
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24 # was 20 — Node 22.14+ required for OIDC
registry-url: https://registry.npmjs.org/
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run tests
run: pnpm test
- name: Build package
run: pnpm build
- name: Update npm to latest
run: npm install -g npm@latest
- name: Publish to npm
run: pnpm publish --access public --no-git-checks --provenance
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true