File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 runs-on : ubuntu-latest
1111 steps :
1212 - uses : actions/checkout@v4
13- - uses : actions/setup-node @v4
13+ - uses : pnpm/action-setup @v4
1414 - name : Check if version already exists
1515 id : version-check
1616 run : |
2929 fi
3030 env :
3131 GH_TOKEN : ${{ secrets.GH_TOKEN }}
32- - name : Setup git
33- if : ${{ steps.version-check.outputs.skipped == 'false' }}
34- run : |
35- git config --global user.email ${{ secrets.GH_EMAIL }}
36- git config --global user.name ${{ secrets.GH_USERNAME }}
37- - name : Generate oclif README
38- if : ${{ steps.version-check.outputs.skipped == 'false' }}
39- id : oclif-readme
40- run : |
41- pnpm install
42- pnpm exec oclif readme
43- if [ -n "$(git status --porcelain)" ]; then
44- git add .
45- git commit -am "chore: update README.md"
46- git push -u origin ${{ github.ref_name }}
47- fi
4832 - name : Create Github Release
4933 uses : ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5
5034 if : ${{ steps.version-check.outputs.skipped == 'false' }}
5337 tag : ${{ steps.version-check.outputs.tag }}
5438 commit : ${{ github.ref_name }}
5539 token : ${{ secrets.GH_TOKEN }}
56- skipIfReleaseExists : true
40+ skipIfReleaseExists : true
Original file line number Diff line number Diff line change 77jobs :
88 publish :
99 runs-on : ubuntu-latest
10+ permissions :
11+ contents : read
1012 steps :
1113 - uses : actions/checkout@v4
1214 - uses : actions/setup-node@v4
1315 with :
14- node-version : latest
16+ node-version : ' 24'
17+ registry-url : ' https://registry.npmjs.org'
18+ - uses : pnpm/action-setup@v4
19+ with :
20+ version : 10
1521 - run : pnpm install
1622 - run : pnpm run build
1723 - run : pnpm run prepack
18- - uses : JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c
19- with :
20- token : ${{ secrets.NPM_TOKEN }}
24+ - run : pnpm publish --no-git-checks --access restricted
25+ env :
26+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
2127 - run : pnpm run postpack
28+ - run : pnpm run pack:tarballs
29+ - name : Upload tarballs to release
30+ uses : ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5
31+ with :
32+ artifacts : " dist/*.tar*"
33+ allowUpdates : true
34+ omitBodyDuringUpdate : true
35+ omitNameDuringUpdate : true
36+ token : ${{ secrets.GH_TOKEN }}
Original file line number Diff line number Diff line change 88 unit-tests :
99 strategy :
1010 matrix :
11- os : ['ubuntu-latest', 'windows-latest' ]
12- node_version : [lts/-1, lts/*, latest ]
11+ os : ['ubuntu-latest']
12+ node_version : [lts/* ]
1313 fail-fast : false
1414 runs-on : ${{ matrix.os }}
1515 steps :
1616 - uses : actions/checkout@v4
17- - uses : actions/setup-node@v4
18- with :
19- node-version : ${{ matrix.node_version }}
20- cache : pnpm
17+ - uses : pnpm/action-setup@v4
2118 - run : pnpm install
2219 - run : pnpm run build
2320 - run : pnpm run test
You can’t perform that action at this time.
0 commit comments