Skip to content

Commit

Permalink
ci(release): add version dryrun (#6070)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusNotheis authored Jul 11, 2024
1 parent c9fb4aa commit 35491af
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,35 @@ jobs:
uses: './.github/workflows/test.yml'
with:
reportCoverage: false

release-dryrun:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js environment
uses: actions/setup-node@v4.0.2
with:
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Install
run: |
npm install -g npm
yarn install --immutable
- name: version
run: |
${GITHUB_WORKSPACE}/node_modules/.bin/lerna version ${{ github.event.inputs.release_type }} \
${{ (github.event.inputs.prerelease == 'true' && '--conventional-prerelease') || '--conventional-graduate' }} \
--no-git-tag-version --no-push
build-and-release:
needs: ['test']
needs: ['test', 'release-dryrun']
runs-on: ubuntu-latest
environment:
name: 'npm'
Expand Down

0 comments on commit 35491af

Please sign in to comment.