-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.29 KB
/
changesets.yml
File metadata and controls
48 lines (42 loc) · 1.29 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
name: Changesets
on:
push:
branches:
- main
concurrency:
group: changesets-${{ github.ref }}
cancel-in-progress: false
jobs:
release:
name: Version PR or publish
runs-on: ubuntu-latest
timeout-minutes: 15
# changesets/action needs:
# contents: write → push the Version Packages PR branch and tags
# pull-requests: write→ open/update the PR
# id-token: write → mint OIDC tokens for npm provenance
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- name: Build
run: pnpm build
- name: Create release PR or publish
uses: changesets/action@v1
with:
# When pending changesets exist on main, open/update a "Version
# Packages" PR. When the PR merges (no pending changesets),
# run `pnpm release` to publish to npm.
version: pnpm version-packages
publish: pnpm release
commit: "chore: version packages"
title: "chore: version packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: "true"