forked from rad-ui/ui
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.08 KB
/
Copy pathrelease-changesets.yml
File metadata and controls
44 lines (37 loc) · 1.08 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
# .github/workflows/changesets-pr.yml
name: Changesets PR
on:
push:
branches: [ main ]
permissions:
contents: write
pull-requests: write
id-token: write
concurrency:
group: changesets-pr-${{ github.ref }}
cancel-in-progress: false
jobs:
open_version_pr:
# Skip when the commit is the version bump itself
if: "!contains(github.event.head_commit.message, 'chore: version packages')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org
cache: npm
- run: npm ci
- run: npm run build:rollup
- name: Changesets (PR only)
uses: changesets/action@v1
with:
version: npx changeset version
publish: "" # <-- disable publish path
commit: "release: bump package version"
title: "Release PR"
createGithubReleases: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}