Skip to content

Commit

Permalink
ci: Dry-run releases
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Dec 12, 2024
1 parent a266f31 commit c1ab8c8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
description: Only create a test release, without moving the tags?
required: false
type: boolean
dry-run-tag:
description: Release tag to assume.
type: string
required: false
wants-github-release:
default: true
description: Create a GitHub release?
Expand Down Expand Up @@ -45,11 +49,16 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
registry-url: https://registry.npmjs.org

# We track the release version through KS only.
- name: Determine versions
if: "${{ inputs.dry-run-tag == '' }}"
run: |
cd packages/kitten-scientists
echo "RELEASE_VERSION=$(node ../../scripts/release-version.cjs)" >> $GITHUB_ENV
- name: Set versions
if: "${{ inputs.dry-run-tag != '' }}"
run: |
cd packages/kitten-scientists
echo "RELEASE_VERSION=${{ inputs.dry-run-tag }}" >> $GITHUB_ENV
qa:
name: 🔹 QA
Expand Down

0 comments on commit c1ab8c8

Please sign in to comment.