@@ -15,36 +15,32 @@ jobs:
1515 steps :
1616 - uses : actions/checkout@v2
1717
18- - uses : actions/setup-node @v2
18+ - uses : pnpm/action-setup @v2
1919 with :
20- node- version : 14.x
20+ version : 7
2121
22- - uses : bahmutov/npm-install@v1
22+ - uses : actions/setup-node@v2
2323 with :
24- # By default, bahmutov/npm-install uses --frozen-lockfile
25- install-command :
26- yarn --ignore-optional --pure-lockfile --non-interactive
24+ node-version : 18.x
25+ cache : ' pnpm'
26+
27+ - name : Install
28+ run : pnpm install --no-optional --no-frozen-lockfile
2729
2830 - name : Run linter
29- run : yarn lint --quiet
31+ run : pnpm lint --quiet
3032
3133 - name : Run tests and collect coverage
32- run : yarn test -- coverage
34+ run : pnpm test: coverage
3335
3436 - name : Typecheck
35- run : yarn typecheck
37+ run : pnpm typecheck
3638
3739 - name : Build
38- run : yarn build
39-
40- - name : Typecheck built files
41- run : |
42- cd scripts/typecheck-built-files
43- yarn
44- yarn start
40+ run : pnpm build
4541
4642 - name : Run Codechecks
47- run : yarn codechecks
43+ run : pnpm codechecks
4844 env :
4945 CC_SECRET : ${{ secrets.CC_SECRET }}
5046 if : ${{ env.CC_SECRET != '' }}
@@ -80,14 +76,17 @@ jobs:
8076 - name : Prepare repository
8177 run : git fetch --unshallow --tags
8278
83- - uses : actions/setup-node @v2
79+ - uses : pnpm/action-setup @v2
8480 with :
85- node- version : 14.x
81+ version : 7
8682
87- - uses : bahmutov/npm-install@v1
83+ - uses : actions/setup-node@v2
8884 with :
89- install-command :
90- yarn --ignore-optional --pure-lockfile --non-interactive
85+ node-version : 18.x
86+ cache : ' pnpm'
87+
88+ - name : Install
89+ run : pnpm install --no-optional --no-frozen-lockfile
9190
9291 - name : Queue in release turnstile
9392 id : turnstyle
@@ -104,4 +103,10 @@ jobs:
104103 GITHUB_TOKEN : ${{ secrets.AUTO_RELEASE_GH_TOKEN }}
105104 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
106105 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
107- run : yarn release
106+ run : pnpm release
107+
108+ - name : Check published prerelease
109+ if : github.ref == 'refs/heads/develop'
110+ run : |
111+ cd scripts/typecheck-built-files
112+ pnpm start
0 commit comments