Skip to content

feat: Add a refresh method on pools that should efficiently refresh a… #273

feat: Add a refresh method on pools that should efficiently refresh a…

feat: Add a refresh method on pools that should efficiently refresh a… #273

Workflow file for this run

name: Beta release
on:
pull_request:
types:
- closed
branches:
- develop
defaults:
run:
working-directory: balancer-js
jobs:
build_and_release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: develop
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: actions/cache@v2
id: cache
with:
path: "**/node_modules"
key: yarn-v1-${{ hashFiles('**/yarn.lock') }}
- run: yarn --immutable
if: steps.cache.outputs.cache-hit != 'true'
- name: Generate Typechain
run: yarn typechain:generate
- env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}
run: |
echo -n "$SIGNING_KEY" | base64 --decode | gpg --import
git config --global user.name "johngrantuk"
git config --global user.email "[email protected]"
git config user.signingkey 5D1644BB7D087635E36B06C1ABCBFFAEE5EAEE77
git config gpg.program /usr/bin/gpg
yarn version --prerelease --preid beta --no-git-tag-version
export NEW_VERSION=$(jq -r '.version' package.json)
git commit -S -am "chore: version bump v$NEW_VERSION"
git tag "v$NEW_VERSION"
git remote set-url origin "https://johngrantuk:[email protected]/balancer-labs/balancer-sdk"
git push
yarn build
yarn publish --non-interactive --tag beta
env:
CI: true