-
Notifications
You must be signed in to change notification settings - Fork 0
22 lines (22 loc) · 859 Bytes
/
Copy pathrelease.yml
File metadata and controls
22 lines (22 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: Release
on:
push: { branches: [main] }
permissions: { contents: write, pull-requests: write, id-token: write }
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
# Node 22.14+ and npm 11.5.1+ are required for npm OIDC trusted publishing.
- uses: actions/setup-node@v4
with: { node-version: 22, cache: pnpm }
- run: npm install -g npm@latest # ensure npm >= 11.5.1 for OIDC
- run: pnpm install --frozen-lockfile
- run: pnpm build
# No NPM_TOKEN: auth is the GitHub OIDC token (id-token: write) + the per-package
# Trusted Publisher configured on npmjs.com. Provenance stays on via .npmrc.
- uses: changesets/action@v1
with: { publish: pnpm release }
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}