File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33on :
44 push :
5- branches : [ main ]
5+ branches : [main]
66
77jobs :
88 build-test-publish :
1616 node-version : 20
1717 registry-url : https://registry.npmjs.org/
1818
19- - name : Install dependencies
20- run : npm ci
19+ - name : Clean install
20+ run : |
21+ rm -rf node_modules package-lock.json
22+ npm install
2123
2224 - name : Build
2325 run : npm run build
3234 if : ${{ vars.ENVIRONMENT == 'prod' }}
3335 run : npm publish --access public
3436 env :
35- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
37+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 22
33on :
44 pull_request :
5- branches : [ main ]
5+ branches : [main]
66 push :
7- branches : [ main ]
7+ branches : [main]
88
99jobs :
1010 build-and-test :
1717 with :
1818 node-version : 20
1919
20- - name : Install dependencies
21- run : npm ci
20+ - name : Clean install
21+ run : |
22+ rm -rf node_modules package-lock.json
23+ npm install
2224
2325 - name : Build
2426 run : npm run build
2729 run : npm run check
2830
2931 - name : Run tests
30- run : npm run test
32+ run : npm run test
You can’t perform that action at this time.
0 commit comments