Skip to content

Lerna Publish V1

Lerna Publish V1 #55

name: Lerna Publish V1
on:
workflow_run:
workflows: ["Codegen Main V1"]
types:
- completed
workflow_dispatch:
jobs:
publish-npm:
name: Publish V1 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 V1 Version 🚀
run: |
pushd v1
yarn
lerna publish --force-publish=chain-registry --no-verify-access --yes
popd
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_SECRET}}
GH_TOKEN: ${{ secrets.GH_LERNA_PUBLISH_TOKEN }}