File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,22 +17,37 @@ jobs:
1717 release :
1818 name : Release
1919 runs-on : ubuntu-latest
20+ container :
21+ image : letssteam/makecode-toolchain:latest
22+ options : --user 1001 --security-opt no-new-privileges
2023 permissions :
2124 contents : write # to be able to publish a GitHub release
2225 issues : write # to be able to comment on released issues
2326 pull-requests : write # to be able to comment on released pull requests
2427 id-token : write # to enable use of OIDC for npm provenance
28+ strategy :
29+ matrix :
30+ node-version : [16.x, 18.x, 20.x]
2531 steps :
26- - name : Checkout
27- uses : actions/checkout@v3
32+ - name : Cache node modules
33+ id : cache-npm
34+ uses : actions/cache@v4
35+ env :
36+ cache-name : cache-node-modules
2837 with :
29- fetch-depth : 0
30- - name : Setup Node.js
31- uses : actions/setup-node@v3
38+ path : ~/.npm
39+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
40+ restore-keys : |
41+ ${{ runner.os }}-build-${{ env.cache-name }}-
42+ ${{ runner.os }}-build-
43+ ${{ runner.os }}-
44+ - name : Use Node.js ${{ matrix.node-version }}
45+ uses : actions/setup-node@v4
3246 with :
33- node-version : ' lts/*'
34- - name : Install dependencies
35- run : npm clean-install
47+ node-version : ${{ matrix.node-version }}
48+ - uses : actions/checkout@v4
49+ - run : npm run setup
50+ - run : npm run ci
3651 - name : Verify the integrity of provenance attestations and registry signatures for installed dependencies
3752 run : npm audit signatures
3853 - name : Release
You can’t perform that action at this time.
0 commit comments