Skip to content

Commit c15dadb

Browse files
committed
ci: rename build workflow to ci
1 parent 5520248 commit c15dadb

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build
1+
name: ci
22

33
on:
44
push:
@@ -7,10 +7,7 @@ on:
77
branches: [main]
88

99
permissions:
10-
contents: write
11-
issues: write
12-
pull-requests: write
13-
id-token: write
10+
contents: read
1411

1512
jobs:
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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)

0 commit comments

Comments
 (0)