fix(publisher): Publish in order strictly (#372) #302
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Open Release PR | |
on: | |
push: | |
branches: | |
- main | |
- staging | |
- release | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
CLICOLOR: 1 | |
RUST_VERSION: 1.81.0 | |
RUST_NIGHTLY_VERSION: nightly-2024-11-06 | |
jobs: | |
setup: | |
if: "!startsWith(github.event.head_commit.message, 'ci(release)')" | |
runs-on: ubuntu-latest | |
outputs: | |
branch: ${{ steps.set-vars.outputs.branch }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Check for pre-release configuration | |
id: set-vars | |
run: | | |
echo "branch=changeset/release-main" >> $GITHUB_OUTPUT | |
prepare-release: | |
if: "!startsWith(github.event.head_commit.message, 'ci(release)')" | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.REPO_TOKEN }} | |
- name: Configure Git | |
run: | | |
git config --global user.name GitHub Actions | |
git config user.email [email protected] | |
- name: Install Rust | |
uses: ./.github/actions/setup-rust | |
with: | |
toolchain: ${{ env.RUST_NIGHTLY_VERSION }} | |
- name: Setup Node && PNPM | |
uses: ./.github/actions/setup-node | |
- uses: knope-dev/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run knope prepare release | |
continue-on-error: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }} | |
RELEASE_BRANCH: ${{ needs.setup.outputs.branch }} | |
run: knope prepare-release --verbose |