Skip to content

Commit 14bfdd6

Browse files
committed
chore: enable release from GitHub actions
1 parent 6514cd0 commit 14bfdd6

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.github/workflows/release.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,23 @@ name: release
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
arguments:
7+
description: cli arguments
8+
default: ''
9+
required: false
510

611
env:
12+
arguments: ${{ github.event.inputs.arguments }}
713
node: 20
814

915
permissions:
16+
checks: write
1017
contents: write
1118
id-token: write
1219
issues: write
1320
pull-requests: write
21+
statuses: write
1422

1523
jobs:
1624
release:
@@ -19,14 +27,15 @@ jobs:
1927
- uses: actions/checkout@v3
2028
with:
2129
fetch-depth: 0
22-
persist-credentials: false
2330
- uses: actions/setup-node@v3
2431
with:
2532
cache: npm
2633
node-version: ${{ env.node }}
34+
- run: git config user.email '${{ secrets.GH_EMAIL }}'
35+
- run: git config user.name '${{ secrets.GH_NAME }}'
2736
- run: npm ci
2837
- run: npm audit signatures
29-
- run: npm run release -- --npm.skipChecks
38+
- run: npm run release -- --npm.skipChecks ${{ env.arguments }}
3039
env:
3140
GITHUB_TOKEN: ${{ github.token }}
3241
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmrc

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
2+
//registry.npmjs.org:_authToken=${NPM_TOKEN}
3+
14
engine-strict=true

.release-it.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
"after:bump": "npm run build"
2121
},
2222
"npm": {
23-
"publish": true
23+
"publish": true,
24+
"publishArgs": [
25+
"--provenance"
26+
]
2427
},
2528
"plugins": {
2629
"@release-it/conventional-changelog": {

0 commit comments

Comments
 (0)