File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,40 +3,38 @@ name: Lint
33on :
44 push :
55 branches :
6- - main
76 - develop
87 pull_request :
98 branches :
109 - main
1110 - develop
11+ workflow_call :
1212
1313jobs :
1414 macos-browser-test :
1515 runs-on : macos-latest
1616 permissions :
1717 contents : read
18- pull-requests : write
1918 steps :
2019 - uses : actions/checkout@v6
2120 - uses : actions/setup-node@v6
2221 with :
2322 node-version : 24
2423 registry-url : " https://registry.npmjs.org"
2524 - run : npm install -g npm@latest
26- - run : npm install
25+ - run : npm ci
2726 - run : npm run lint
2827
2928 windows-browser-test :
3029 runs-on : windows-latest
3130 permissions :
3231 contents : read
33- pull-requests : write
3432 steps :
3533 - uses : actions/checkout@v6
3634 - uses : actions/setup-node@v6
3735 with :
3836 node-version : 24
3937 registry-url : " https://registry.npmjs.org"
4038 - run : npm install -g npm@latest
41- - run : npm install
39+ - run : npm ci
4240 - run : npm run lint
Original file line number Diff line number Diff line change @@ -10,15 +10,23 @@ permissions:
1010 contents : read
1111
1212jobs :
13+ lint :
14+ uses : ./.github/workflows/lint.yml
15+
1316 publish :
17+ needs : [lint]
1418 runs-on : ubuntu-latest
19+ permissions :
20+ contents : read
21+ pull-requests : write
22+ id-token : write
1523 steps :
1624 - uses : actions/checkout@v6
1725 - uses : actions/setup-node@v6
1826 with :
1927 node-version : 24
2028 registry-url : " https://registry.npmjs.org"
2129 - run : npm install -g npm@latest
22- - run : npm install
30+ - run : npm ci
2331 - run : npm run release
2432 - run : npm publish
You can’t perform that action at this time.
0 commit comments