File tree Expand file tree Collapse file tree 7 files changed +13007
-5648
lines changed
Expand file tree Collapse file tree 7 files changed +13007
-5648
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+ on :
3+ workflow_dispatch :
4+ push :
5+ branches :
6+ - main
7+
8+ env :
9+ HUSKY : 0
10+
11+ permissions :
12+ contents : read # for checkout
13+
14+ jobs :
15+ release :
16+ name : Release
17+ runs-on : ubuntu-latest
18+ permissions :
19+ contents : write # to be able to publish a GitHub release
20+ issues : write # to be able to comment on released issues
21+ pull-requests : write # to be able to comment on released pull requests
22+ id-token : write # to enable use of OIDC for npm provenance
23+
24+ steps :
25+ - name : Checkout repository
26+ uses : actions/checkout@v6
27+ with :
28+ fetch-depth : 0
29+
30+ - name : Set up Node.js
31+ uses : actions/setup-node@v6
32+ with :
33+ node-version : " lts/*"
34+
35+ - name : Install dependencies
36+ run : npm clean-install
37+
38+ - name : Verify the integrity of provenance attestations and registry signatures for installed dependencies
39+ run : npm audit signatures
40+
41+ - name : Release
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+ run : npx semantic-release
Original file line number Diff line number Diff line change 1+ npx --no -- commitlint --edit $1
Original file line number Diff line number Diff line change 1+ // Skip Husky install in production and CI
2+ if ( process . env . NODE_ENV === 'production' || process . env . CI === 'true' ) {
3+ process . exit ( 0 )
4+ }
5+ const husky = ( await import ( 'husky' ) ) . default
6+ console . log ( husky ( ) )
Original file line number Diff line number Diff line change 1+ npm test
Original file line number Diff line number Diff line change 1+ module . exports = { extends : [ '@commitlint/config-conventional' ] }
You can’t perform that action at this time.
0 commit comments