chore: Update signingkey. #261
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: 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 4B79F96E67577316168E4B00DCB110CEF1E5C62B | |
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 |