Lerna Publish V2 #55
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: 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 }} |