update welldone wallet #3
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: Publish canary branch | |
on: | |
push: | |
branches-ignore: | |
- master | |
- dev | |
jobs: | |
publish-canary: | |
runs-on: ubuntu-latest | |
if: contains(github.ref_name, 'canary') | |
steps: | |
- name: 'Checkout' # Download code from the repository | |
uses: actions/checkout@v2 # Public action | |
with: | |
fetch-depth: 0 # Checkout all branches and tags | |
- name: 'Use NodeJS 16' # Setup node using version 14 | |
uses: actions/setup-node@v2 # Public action | |
with: | |
node-version: '16.18.1' | |
- name: 'Setup lerna@6.6.1' | |
run: yarn global add lerna@6.6.1 --ignore-engines | |
- name: Set up Git user | |
run: | | |
git config user.name "${{ github.actor }}" | |
git config user.email "${{ github.actor }}@users.noreply.github.com" | |
- name: Build dependencies | |
run: | | |
node etc/bootstrapEnv | |
yarn install --ignore-engines | |
yarn build | |
- name: 'Setup npm' | |
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: 'Commit ibcTokenMetadata.json if changed' | |
run: | | |
git diff --exit-code -- packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json || (git add packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json && git commit -m "Automatically update ibcTokenMetadata.json") | |
- name: Version and publish | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: | | |
lerna version prerelease --preid dev --force-git-tag --no-changelog --yes | |
lerna publish from-git --force-git-tag --dist-tag dev --yes --summary-file | |
- name: 'Broadcast published versions on Slack' | |
run: node etc/slack --api=$SLACK_API --actor=$GIT_ACTOR --commit-message=$GIT_LATEST_COMMIT_MESSAGE | |
env: | |
GIT_ACTOR: ${{ github.actor }} | |
SLACK_API: ${{ secrets.SLACK_API }} | |
GIT_LATEST_COMMIT_MESSAGE: ${{ github.event.head_commit.message }} |