Skip to content

Commit 026a104

Browse files
committed
Revert "refactor: simplification (#7)"
This reverts commit dd42c8f.
1 parent 608adf3 commit 026a104

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/changeset.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
# https://github.com/changesets/action
4949
uses: changesets/action@v1
5050
with:
51+
# this expects you to have a script called release which does a build for your packages and calls changeset publish
52+
publish: npm run changeset:release
5153
commit: "chore: version packages"
5254
env:
5355
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docs/RELEASE_PROCESS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ npx @changesets/cli status
5959
### Manually version packages (done automatically in CI)
6060

6161
```bash
62-
npx @changesets/cli version
62+
npm run changeset:version
6363
```
6464

6565
### Manually publish (done automatically in CI)
6666

6767
```bash
68-
npx @changesets/cli release
68+
npm run changeset:release
6969
```
7070

7171
## Example Workflow

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
],
4545
"scripts": {
4646
"build": "microbundle",
47+
"changeset:release": "npm run build && npx @changesets/cli publish",
4748
"codestyle": "prettier . --write",
4849
"dev": "microbundle watch",
4950
"lint": "npm-run-all --parallel lint:*",

0 commit comments

Comments
 (0)