Skip to content

feat: add biconomy metaTx configuration to widgets (#532) #419

feat: add biconomy metaTx configuration to widgets (#532)

feat: add biconomy metaTx configuration to widgets (#532) #419

name: "Publish alpha release"
on:
push:
branches:
- main
jobs:
publish:
name: Publish alpha packages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.BSNORG_ACTIONS_SECRET }}
# pulls all commits (needed for lerna / semantic release to correctly version)
fetch-depth: "0"
- name: Setup .npmrc file for publish
uses: actions/setup-node@v3
with:
node-version: "16"
registry-url: "https://registry.npmjs.org"
cache: "npm"
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: .turbo
key: turbo-${{ runner.os }}-${{ github.sha }}
restore-keys: |
turbo-${{ runner.os }}
- run: npm ci
- run: npm run build -- --cache-dir=".turbo"
- name: Set github bot
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Bump next versions
env:
GH_TOKEN: ${{ secrets.BSNORG_ACTIONS_SECRET }}
GITHUB_TOKEN: ${{ secrets.BSNORG_ACTIONS_SECRET }}
run: |
npx lerna version \
--yes \
--conventional-prerelease \
--no-git-tag-version \
--no-changelog \
--no-push
git add .
git commit -m "chore(release): publish alpha [skip ci]"
- name: Publish to npm
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npx lerna publish from-package --dist-tag alpha --yes
git push