File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 48
48
# https://github.com/changesets/action
49
49
uses : changesets/action@v1
50
50
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
51
53
commit : " chore: version packages"
52
54
env :
53
55
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -59,13 +59,13 @@ npx @changesets/cli status
59
59
### Manually version packages (done automatically in CI)
60
60
61
61
``` bash
62
- npx @changesets/cli version
62
+ npm run changeset: version
63
63
```
64
64
65
65
### Manually publish (done automatically in CI)
66
66
67
67
``` bash
68
- npx @changesets/cli release
68
+ npm run changeset: release
69
69
```
70
70
71
71
## Example Workflow
Original file line number Diff line number Diff line change 44
44
],
45
45
"scripts" : {
46
46
"build" : " microbundle" ,
47
+ "changeset:release" : " npm run build && npx @changesets/cli publish" ,
47
48
"codestyle" : " prettier . --write" ,
48
49
"dev" : " microbundle watch" ,
49
50
"lint" : " npm-run-all --parallel lint:*" ,
You can’t perform that action at this time.
0 commit comments