1212 name : Build and test with Node ${{ matrix.node }}
1313 steps :
1414 - uses : actions/checkout@v4
15- - uses : jdx/mise-action@v2
15+ - uses : ./.github/actions/node
1616 with :
17- mise_toml : |
18- [tools]
19- node = "${{ matrix.node }}"
20- - uses : actions/setup-node@v4
21- with :
22- cache : ' npm'
23- - run : npm ci
17+ node-version-override : ${{ matrix.node }}
2418 - run : npm test
2519
2620 # This runs against an old alpha of GraphQL v17; hopefully Apollo Server v5
3024 name : Test against GraphQL 17 alpha with incremental delivery
3125 steps :
3226 - uses : actions/checkout@v4
33- - uses : jdx/mise-action@v2
34- - uses : actions/setup-node@v4
35- with :
36- cache : ' npm'
37- - run : npm ci
27+ - uses : ./.github/actions/node
3828 - run : npm i --legacy-peer-deps graphql@17.0.0-alpha.2
3929 - run : npm test
4030 env :
@@ -45,33 +35,37 @@ jobs:
4535 name : Prettier
4636 steps :
4737 - uses : actions/checkout@v4
48- - uses : jdx/mise-action@v2
49- - uses : actions/setup-node@v4
50- with :
51- cache : ' npm'
52- - run : npm ci
38+ - uses : ./.github/actions/node
5339 - run : npm run prettier-check
5440
5541 lint :
5642 runs-on : ubuntu-latest
5743 name : Lint
5844 steps :
5945 - uses : actions/checkout@v4
60- - uses : jdx/mise-action@v2
61- - uses : actions/setup-node@v4
62- with :
63- cache : ' npm'
64- - run : npm ci
46+ - uses : ./.github/actions/node
6547 - run : npm run lint
6648
6749 spell-check :
6850 runs-on : ubuntu-latest
6951 name : Spell Check
7052 steps :
7153 - uses : actions/checkout@v4
72- - uses : jdx/mise-action@v2
73- - uses : actions/setup-node@v4
74- with :
75- cache : ' npm'
76- - run : npm ci
54+ - uses : ./.github/actions/node
7755 - 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/') }}
0 commit comments