-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.01 KB
/
Copy pathrelease.yml
File metadata and controls
41 lines (38 loc) · 1.01 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
name: Release
on:
push:
branches: [main]
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
environment: production
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@v6
with:
node-version: 24
cache: "yarn"
- run: yarn install --immutable
- name: Upgrade npm for trusted publishing
run: npm install -g npm@11.16.0
- name: Verify npm trusted publishing prerequisites
run: |
node --version
npm --version
test "$(npm --version | cut -d. -f1)" -ge 11
- name: Create Release PR or Publish
id: changesets
uses: changesets/action@v1
with:
publish: bash scripts/publish-npm-oidc.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}