Skip to content

Lerna Publish V2

Lerna Publish V2 #53

name: Lerna Publish V2
on:
workflow_run:
workflows: ["Codegen Main V2"]
types:
- completed
workflow_dispatch:
jobs:
publish-npm:
name: Publish V2 Version
runs-on: ubuntu-latest
steps:
- name: Checkout Repository 🛎️
uses: actions/checkout@v4
with:
submodules: "true"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: https://registry.npmjs.org/
- name: Configure Git
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor}}@users.noreply.github.com"
- name: Publish V2 Version 🚀
run: |
pushd v2
yarn
lerna publish --force-publish=@chain-registry/v2 --no-verify-access --yes
popd
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_SECRET}}
GH_TOKEN: ${{ secrets.GH_LERNA_PUBLISH_TOKEN }}