Skip to content

Commit 423f892

Browse files
committed
Add changesets and update github workflow
1 parent 52e0a16 commit 423f892

3 files changed

Lines changed: 57 additions & 6 deletions

File tree

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets).
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md).

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.3/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/main.yml

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,54 @@ jobs:
1111
name: Test and Build
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1515

1616
- uses: pnpm/action-setup@v4
1717
with:
1818
version: 10
19-
run_install: false
2019

21-
- uses: actions/setup-node@v4
20+
- uses: actions/setup-node@v6
2221
with:
23-
node-version: 18
22+
node-version: 24
2423
cache: "pnpm"
2524

2625
- run: pnpm install --frozen-lockfile
2726

27+
- name: Check
28+
run: pnpm check
29+
2830
- name: Test
2931
run: pnpm test
32+
release:
33+
name: Release or Publish
34+
needs: build
35+
if: ${{ github.event_name == 'push' }}
36+
runs-on: ubuntu-latest
37+
permissions:
38+
contents: write
39+
pull-requests: write
40+
id-token: write
41+
steps:
42+
- uses: actions/checkout@v6
3043

31-
- name: Build
32-
run: pnpm build
44+
- uses: pnpm/action-setup@v4
45+
with:
46+
version: 10
47+
run_install: false
48+
49+
- uses: actions/setup-node@v6
50+
with:
51+
node-version: 24
52+
cache: "pnpm"
53+
registry-url: https://registry.npmjs.org
54+
55+
- run: pnpm install --frozen-lockfile
56+
57+
- name: Create Release Pull Request or Publish
58+
id: changesets
59+
uses: changesets/action@v1
60+
with:
61+
publish: pnpm release
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)