Skip to content

Release NPM Packages #8

Release NPM Packages

Release NPM Packages #8

name: Release NPM Packages
on:
workflow_dispatch:
push:
branches:
- develop
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22.9.0
cache: npm
- name: "Install dependencies"
run: npm ci --workspaces --include-workspace-root --force
- name: "Build"
run: npm run build
- name: "NPM Identity"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm config set registry "//registry.npmjs.org/" && npm config set _auth $NPM_TOKEN
- name: Run Lerna Release
run: npm run publish:canary
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}