Skip to content

Merge pull request #38 from bnb-chain/feat/update-switch-network #40

Merge pull request #38 from bnb-chain/feat/update-switch-network

Merge pull request #38 from bnb-chain/feat/update-switch-network #40

Workflow file for this run

name: Release
on:
push:
branches:
- main
paths:
- .release/**
- packages/canonical-bridge-sdk/**
- packages/canonical-bridge-widget/**
permissions:
contents: write
issues: write
pull-requests: write
jobs:
cicd:
if: github.repository == 'bnb-chain/canonical-bridge'
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout code repository
uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
npm-token: ${{ secrets.NPM_TOKEN }}
- name: Install & build
run: |
node .release/scripts/install.js
node common/scripts/install-run-rush.js install -t @bnb-chain/canonical-bridge-sdk
node common/scripts/install-run-rush.js build -t @bnb-chain/canonical-bridge-sdk
node common/scripts/install-run-rush.js install -t @bnb-chain/canonical-bridge-widget
node common/scripts/install-run-rush.js build -t @bnb-chain/canonical-bridge-widget
- name: Get branch name
id: get-branch
run: |
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
- name: Create and publish versions
uses: changesets/action@v1
with:
version: pnpm ci:stable-version
publish: pnpm ci:publish
commit: 'chore: Update versions'
title: 'chore: Update versions'
cwd: '.release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}