Skip to content

Commit 35491af

Browse files
ci(release): add version dryrun (#6070)
1 parent c9fb4aa commit 35491af

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,35 @@ jobs:
1919
uses: './.github/workflows/test.yml'
2020
with:
2121
reportCoverage: false
22+
23+
release-dryrun:
24+
runs-on: ubuntu-latest
25+
permissions:
26+
contents: read
27+
steps:
28+
- uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0
31+
32+
- name: Setup Node.js environment
33+
uses: actions/[email protected]
34+
with:
35+
node-version-file: '.nvmrc'
36+
cache: 'yarn'
37+
38+
- name: Install
39+
run: |
40+
npm install -g npm
41+
yarn install --immutable
42+
43+
- name: version
44+
run: |
45+
${GITHUB_WORKSPACE}/node_modules/.bin/lerna version ${{ github.event.inputs.release_type }} \
46+
${{ (github.event.inputs.prerelease == 'true' && '--conventional-prerelease') || '--conventional-graduate' }} \
47+
--no-git-tag-version --no-push
2248
2349
build-and-release:
24-
needs: ['test']
50+
needs: ['test', 'release-dryrun']
2551
runs-on: ubuntu-latest
2652
environment:
2753
name: 'npm'

0 commit comments

Comments
 (0)