Skip to content

Commit f23ad25

Browse files
committed
Experiment with using changesets to manage releases
1 parent b57e927 commit f23ad25

4 files changed

Lines changed: 46 additions & 2 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.2/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/test.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
11
name: Test
22
on:
3-
- push
3+
push:
44

55
jobs:
6+
changeset:
7+
if: ${{ github.ref != 'refs/heads/main' }}
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v6
11+
with:
12+
fetch-depth: 0
13+
14+
- uses: actions/setup-node@v6
15+
with:
16+
node-version: "22"
17+
18+
- name: Install modules
19+
run: npm install
20+
21+
- name: Fetch base branch
22+
run: git fetch origin main --depth=1
23+
24+
- name: Verify changeset status
25+
run: npx changeset status --since=origin/main
26+
627
lint:
728
runs-on: ubuntu-latest
829
steps:

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@
77
"build": "npm run build --workspaces --if-present",
88
"lint": "eslint && prettier --check .",
99
"format": "prettier --write .",
10-
"benchmarks": "node benchmarks/noaa.ts"
10+
"benchmarks": "node benchmarks/noaa.ts",
11+
"changeset": "changeset",
12+
"version": "changeset version",
13+
"release": "npm run build && changeset publish"
1114
},
1215
"devDependencies": {
16+
"@changesets/cli": "^2.29.8",
1317
"@eslint/js": "^9.39.2",
1418
"@types/make-fetch-happen": "^10.0.4",
1519
"@types/node": "^25.0.2",

0 commit comments

Comments
 (0)