Workflow file for this run
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
on: | |
workflow_call: | |
push: | |
branches: | |
- feat/enforce-bumped-spec-version | |
jobs: | |
force-version-bump: | |
runs-on: [digitalocean] | |
steps: | |
- name: Checkout backend | |
uses: actions/checkout@v2 | |
- name: Configure NodeJS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: "pnpm" | |
registry-url: "https://npm.pkg.github.com" | |
scope: "@chainflip-io" | |
cache-dependency-path: "bouncer/pnpm-lock.yaml" | |
- name: Download latest release binaries | |
uses: dawidd6/action-download-artifact@v2 | |
with: | |
workflow: release-perseverance.yml | |
name: chainflip-backend-bin-ubuntu-22.04 | |
github_token: ${{ secrets.CF_BACKEND_GITHUB_TOKEN }} | |
path: latest-release-bins | |
- name: Permissions for latest binaries | |
run: | | |
chmod +x ./latest-release-bins/chainflip-* | |
- name: Version of the latest release | |
run: | | |
set -x | |
echo $(pwd) | |
RELEASE_VERSION=$(./latest-release-bins/chainflip-engine --version) | |
echo $RELEASE_VERSION | |
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> $GITHUB_ENV | |
- name: Install node dependencies | |
working-directory: bouncer | |
run: pnpm install | |
- name: Check the version of the branch is greater than the current release | |
working-directory: bouncer | |
run: | | |
set -x | |
echo ${{ env.RELEASE_VERSION }} | |
./commands/read_workspace_tomls.ts ${{ github.workspace }} "${{ env.RELEASE_VERSION }}" | |