Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:
concurrency:
group: ${{ github.workflow }}
run-name: "Release (increment: ${{ github.event.inputs.increment }}, prerelease: ${{ github.event.inputs.prerelease || 'none' }}${{ github.event.inputs.dry-run == 'true' && ', dry run' || '' }})"
permissions:
id-token: write
contents: read
jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -31,17 +34,12 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 23
node-version: "22.21.0"
cache: npm
- name: Setup git config
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Setup npm config
run: |
npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install dependencies
run: npm ci
- name: Release package
Expand All @@ -58,5 +56,4 @@ jobs:
fi
npm run release -- $ARGS --ci
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"release": true,
"releaseName": "v${version}"
},
"npm": {
"skipChecks": true
},
"hooks": {
"before:init": ["npm run build", "npm run lint"],
"after:bump": "npm run format -- package.json"
Expand Down
Loading