File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : build
1+ name : ci
22
33on :
44 push :
77 branches : [main]
88
99permissions :
10- contents : write
11- issues : write
12- pull-requests : write
13- id-token : write
10+ contents : read
1411
1512jobs :
1613 build :
@@ -23,23 +20,28 @@ jobs:
2320 - uses : actions/setup-node@v4
2421 with :
2522 node-version : ${{ matrix.node-version }}
26- - run : npm ci
27- - run : npm run build
23+ - run : npm clean-install
2824 - run : npm run lint
25+ - run : npm run build
2926
3027 release :
31- needs : [build]
32- runs-on : ubuntu-latest
28+ needs : build
3329 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
30+ runs-on : ubuntu-latest
31+ permissions :
32+ contents : write # to be able to publish a GitHub release
33+ issues : write # to be able to comment on released issues
34+ pull-requests : write # to be able to comment on released pull requests
35+ id-token : write # to enable use of OIDC for npm provenance
3436 steps :
3537 - uses : actions/checkout@v4
3638 - uses : actions/setup-node@v4
3739 with :
38- node-version : 22
39- - run : npm ci
40+ node-version : 22.x
41+ - run : npm clean-install
42+ - run : npm audit signatures
4043 - run : npm run build
4144 - run : npx semantic-release
4245 env :
4346 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4447 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
45- HUSKY : 0
Original file line number Diff line number Diff line change 22
33> 🔥 GitHub contribution streak & stat tracking command line app
44
5- [ ![ build ] ( https://github.com/jamieweavis/streaker-cli/workflows/build /badge.svg )] ( https://github.com/jamieweavis/streaker-cli/actions/workflows/build.yml )
5+ [ ![ ci ] ( https://github.com/jamieweavis/streaker-cli/workflows/ci /badge.svg )] ( https://github.com/jamieweavis/streaker-cli/actions )
66[ ![ downloads] ( https://img.shields.io/npm/dt/streaker-cli.svg )] ( https://npmjs.com/package/streaker-cli )
77[ ![ version] ( https://img.shields.io/npm/v/streaker.svg )] ( https://github.com/jamieweavis/streaker-cli/releases )
88[ ![ license] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( https://github.com/jamieweavis/streaker-cli/blob/main/LICENSE )
You can’t perform that action at this time.
0 commit comments