Dependabot couldn't find the original pull request head commit, ea510f40fc1855aa17a782e05b0d30547e84955e. Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
60 lines
1.9 KiB
YAML
60 lines
1.9 KiB
YAML
name: Release - Dry Run Preview
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
ref:
|
|
description: 'Ref or commit to preview as the next stable release candidate'
|
|
required: false
|
|
default: main
|
|
type: string
|
|
|
|
jobs:
|
|
preview:
|
|
name: Preview Next Stable Release
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
fetch-depth: 0
|
|
ref: ${{ inputs.ref }}
|
|
|
|
- name: Confirm Preview Ref Is Contained By Main
|
|
run: |
|
|
git fetch origin main --tags --force
|
|
if ! git merge-base --is-ancestor HEAD origin/main; then
|
|
echo "Selected ref is not contained by origin/main"
|
|
exit 1
|
|
fi
|
|
git checkout -B main "$(git rev-parse HEAD)"
|
|
- name: Set Up Node.js
|
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
|
with:
|
|
node-version: '24'
|
|
cache: 'npm'
|
|
cache-dependency-path: tools/release/package-lock.json
|
|
|
|
- name: Install Release Tooling Dependencies
|
|
run: npm --prefix tools/release ci
|
|
|
|
- name: Run semantic-release Dry Run
|
|
env:
|
|
GH_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN != '' && secrets.RELEASE_BOT_TOKEN || github.token }}
|
|
GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN != '' && secrets.RELEASE_BOT_TOKEN || github.token }}
|
|
run: |
|
|
npx --prefix tools/release semantic-release \
|
|
--dry-run \
|
|
--extends ./tools/release/release.config.cjs | tee semantic-release-preview.log
|
|
|
|
- name: Upload Preview Output
|
|
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
|
with:
|
|
name: semantic-release-preview
|
|
path: semantic-release-preview.log
|
|
retention-days: 14
|