Skip to content

Commit a67f652

Browse files
authored
Merge pull request #16 from bholmesdev/feat/changeset
Add changeset
2 parents a989dba + b4149df commit a67f652

File tree

7 files changed

+1516
-6
lines changed

7 files changed

+1516
-6
lines changed

.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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "bholmesdev/simple-stack" }
6+
],
7+
"commit": false,
8+
"fixed": [],
9+
"linked": [],
10+
"access": "public",
11+
"baseBranch": "main",
12+
"updateInternalDependencies": "patch",
13+
"ignore": []
14+
}

.changeset/cuddly-radios-film.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"vite-plugin-simple-scope": patch
3+
---
4+
5+
Update package.json to use new github URL

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node-version: [18]
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v2
20+
- uses: pnpm/action-setup@v2
21+
with:
22+
version: 8
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: 'pnpm'
28+
- name: Install dependencies
29+
run: pnpm install
30+
31+
- name: Create Release Pull Request
32+
uses: changesets/action@v1
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
with:
36+
# Note: pnpm install after versioning is necessary to refresh lockfile
37+
version: pnpm run version
38+
commit: "[ci] release"
39+
title: "[ci] release"
40+

CONTRIBUTING.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,12 @@ You can also run packages _and_ examples simultaneously:
7878
pnpm dev:all
7979
```
8080

81-
However, we've found console logs are harder to read using this approach. Use whichever you prefer!
81+
However, we've found console logs are harder to read using this approach. Use whichever you prefer!
82+
83+
## Making a Pull Request
84+
85+
When making a pull request, be sure to add a changeset when a package has changed. Non-packages (`examples/*`) do not need changesets.
86+
87+
```bash
88+
pnpm exec changeset
89+
```

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,18 @@
1212
"lint": "biome lint packages/*",
1313
"lint:apply": "biome lint packages/* --apply",
1414
"format": "biome format",
15-
"format:write": "biome format --write"
15+
"format:write": "biome format --write",
16+
"release": "pnpm build && changeset publish"
1617
},
17-
"keywords": ["withastro"],
18+
"keywords": [
19+
"withastro"
20+
],
1821
"author": "bholmesdev",
1922
"license": "MIT",
2023
"devDependencies": {
2124
"@biomejs/biome": "^1.4.1",
25+
"@changesets/changelog-github": "^0.5.0",
26+
"@changesets/cli": "^2.27.1",
2227
"turbo": "^1.11.2"
2328
}
2429
}

0 commit comments

Comments
 (0)