Skip to content

Commit b7452f5

Browse files
committed
setup release-it
1 parent 8aa403b commit b7452f5

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# GitHub Actions example
2+
jobs:
3+
release:
4+
runs-on: ubuntu-latest
5+
permissions:
6+
contents: write # For git operations
7+
id-token: write # < REQUIRED FOR OIDC
8+
9+
steps:
10+
- uses: actions/checkout
11+
- uses: actions/setup-node
12+
with:
13+
node-version: "lts/*"
14+
registry-url: "https://registry.npmjs.org"
15+
16+
# OIDC requires npm v11.5.1 or later
17+
# Node.js v20 comes with v10.8, so we need to update it:
18+
- run: npm install -g npm@latest
19+
- run: npm ci
20+
- run: npx release-it --ci
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release-it.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"npm": {
3+
"skipChecks": true
4+
}
5+
}

0 commit comments

Comments
 (0)