File tree Expand file tree Collapse file tree 4 files changed +24
-13
lines changed Expand file tree Collapse file tree 4 files changed +24
-13
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ---
Original file line number Diff line number Diff line change 53
53
- uses : actions/checkout@v4
54
54
- uses : ./.github/actions/node
55
55
- run : npm run spell-check
56
+
57
+ # Ensure that any PR that changes packages has a changeset on it (perhaps an
58
+ # empty one created with `changeset --empty`). We run the Changesets job
59
+ # itself on all branches so that we can require it to pass, gbut we don't run
60
+ # the actual check on the "Version Packages" PRs themselves.
61
+ changeset :
62
+ runs-on : ubuntu-latest
63
+ name : Changesets
64
+ steps :
65
+ - uses : actions/checkout@v4
66
+ with :
67
+ # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
68
+ fetch-depth : 0
69
+ - uses : ./.github/actions/node
70
+ - run : npm run changeset-check
71
+ if : ${{ ! startsWith(github.head_ref, 'changeset-release/') }}
Original file line number Diff line number Diff line change @@ -16,21 +16,12 @@ jobs:
16
16
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
17
17
fetch-depth : 0
18
18
19
- - name : Install Node with Mise
20
- uses : jdx/mise-action@v2
21
-
22
- - name : Setup Node.js 16.x
23
- uses : actions/setup-node@v4
24
- with :
25
- cache : ' npm'
26
-
27
- - name : Install Dependencies
28
- run : npm ci
29
-
19
+ - uses : ./.github/actions/node
30
20
- name : Create Release Pull Request / NPM Publish
31
21
uses : changesets/action@v1
32
22
with :
33
- publish : npm run publish-changeset
23
+ publish : npm run changeset-publish
24
+ version : npm run changeset-version
34
25
env :
35
26
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
27
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 23
23
"prepack" : " npm run build" ,
24
24
"prettier-check" : " prettier --check ." ,
25
25
"prettier-fix" : " prettier --write ." ,
26
- "publish-changeset" : " changeset publish" ,
26
+ "changeset-publish" : " npm run compile && changeset publish" ,
27
+ "changeset-check" : " changeset status --verbose --since=origin/main" ,
28
+ "changeset-version" : " changeset version && npm i" ,
27
29
"spell-check" : " cspell lint '**' --no-progress || (echo 'Add any real words to cspell-dict.txt.'; exit 1)" ,
28
30
"test" : " jest" ,
29
31
"test:ci" : " jest --coverage --ci --maxWorkers=2 --reporters=default --reporters=jest-junit" ,
You can’t perform that action at this time.
0 commit comments