-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 1.21 KB
/
Copy pathrelease.yml
File metadata and controls
43 lines (34 loc) · 1.21 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
name: Release
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
release:
runs-on: ubuntu-latest
# Must match the "Environment name" configured on each package's npm
# trusted publisher entry, or OIDC-based publishing is refused.
environment: npm-release
# push: already only fires on main. workflow_dispatch: restrict to main so
# a feature branch can't be manually dispatched into a publish.
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version-file: .node-version
cache: pnpm
registry-url: https://registry.npmjs.org
- name: Check npm CLI version
run: npm -v
- run: pnpm install --frozen-lockfile
- uses: changesets/action@ae32849d5ba541f9ae29e40e22a623bc13562f51 # v2.1.2
with:
publish-script: pnpm release