Skip to content

create separate publish workflow #1

create separate publish workflow

create separate publish workflow #1

Workflow file for this run

name: publish
# Controls when the workflow will run
on:
push:
branches: [master]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version: 20.x
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Set up Git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "Etienne Rossignon (Sterfive)"
- name: Run lerna publish
run: npx lerna publish minor -y
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}