Skip to content

ci(release): add version dryrun #6070

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 11, 2024
Merged
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
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/[email protected]
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
Loading