build: fix release workflow

This commit is contained in:
Andrea Lamparelli 2023-07-06 00:15:14 +02:00
parent 7dd2f7270c
commit a2e4b46d34

View file

@ -6,7 +6,7 @@ on:
options: options:
description: 'Additional release-it options' description: 'Additional release-it options'
required: false required: false
default: '--dry-run' default: ''
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -32,4 +32,4 @@ jobs:
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
- run: npm ci - run: npm ci
# the version/changelog must be already updated on main branch using "npm run release:prepare" # the version/changelog must be already updated on main branch using "npm run release:prepare"
- run: npm run release --ci --no-increment --no-git.commit ${{ github.event.inputs.options }} - run: npm run release -- --ci --no-increment --no-git.commit ${{ github.event.inputs.options }}