File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,15 +43,16 @@ jobs:
4343 with :
4444 node-version : 20
4545 registry-url : https://registry.npmjs.org/
46+ cache : yarn
4647
4748 - name : Install deps
48- run : npm ci
49+ run : yarn install --frozen-lockfile
4950
5051 - name : Run tests
51- run : npm test
52+ run : yarn test
5253
5354 - name : Build
54- run : npm run build
55+ run : yarn build
5556
5657 - name : Get latest tag
5758 id : get_tag
8990
9091 - name : Bump package.json
9192 run : |
92- npm version ${{ steps.version.outputs.next }} --no-git-tag-version
93+ yarn version --new- version ${{ steps.version.outputs.next }} --no-git-tag-version
9394
9495 - name : Show version diff (dry run visibility)
9596 run : |
@@ -101,7 +102,7 @@ jobs:
101102 run : |
102103 git config user.name "github-actions"
103104 git config user.email "github-actions@github.com"
104- git add package.json package-lock.json || true
105+ git add package.json yarn.lock || true
105106 git commit -m "chore(release): v${{ steps.version.outputs.next }}"
106107 git tag v${{ steps.version.outputs.next }}
107108 git push origin HEAD --tags
Original file line number Diff line number Diff line change 88 " dist" ,
99 " style"
1010 ],
11- "scripts" : {
12- "tsc" : " tsc" ,
13- "lint" : " eslint src/" ,
14- "jest" : " jest --no-cache --config=jest.config.json" ,
15- "test" : " npm run lint && npm run jest" ,
16- "test:watch" : " npm run jest -- --watch --no-coverage" ,
17- "bundle" : " rollup -c" ,
18- "build" : " npm run test && npm run bundle" ,
19- "prepublishOnly" : " npm run build"
20- },
11+ "scripts" : {
12+ "tsc" : " tsc" ,
13+ "lint" : " eslint src/" ,
14+ "jest" : " jest --no-cache --config=jest.config.json" ,
15+ "test" : " yarn lint && yarn jest" ,
16+ "test:watch" : " yarn jest --watch --no-coverage" ,
17+ "bundle" : " rollup -c" ,
18+ "build" : " yarn test && yarn bundle" ,
19+ "prepublishOnly" : " yarn build"
20+ },
2121 "repository" : {
2222 "type" : " git" ,
2323 "url" : " git+https://github.com/Hargne/jest-html-reporter.git"
You can’t perform that action at this time.
0 commit comments