Skip to content

Publish new version #439

Publish new version

Publish new version #439

Workflow file for this run

name: Publish new version
on:
workflow_run:
workflows: [ "Test" ]
branches:
- main
- DX-frontends
types:
- completed
jobs:
npm-publish:
name: npm-publish
runs-on: ubuntu-latest
if: |
github.event.workflow_run.conclusion == 'success' &&
contains(github.event.workflow_run.head_commit.message, 'chore: publish')
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Prepare
uses: ./.github/actions/checkout-install
- name: Publish with Lerna
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
DOCS_NPM_TOKEN: ${{ secrets.DOCS_NPM_TOKEN }}
run: |
pnpm -C packages/cli build
pnpm config set //registry.npmjs.org/:_authToken ${NPM_AUTH_TOKEN}
pnpm publish --access public
pnpm config set //registry.npmjs.org/:_authToken ${DOCS_NPM_TOKEN}
pnpm publish packages/cli --access public
pnpm publish packages/storybook --access public
pnpm publish packages/vitepress --access public
pnpm publish packages/vitest --access public
#npx lerna publish -y from-git