Skip to content

feat(publisher): Publish logs (#220) #152

feat(publisher): Publish logs (#220)

feat(publisher): Publish logs (#220) #152

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.79.0
RUST_NIGHTLY_VERSION: nightly-2024-07-28
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