Skip to content

Lerna Publish

Lerna Publish #1000

Workflow file for this run

name: Lerna Publish
on: workflow_dispatch
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache Yarn modules
uses: actions/cache@v3
with:
path: ~/.yarn/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install
- name: Install Lerna
run: yarn global add [email protected]
- name: Configure Git identity
run: |
git config --global user.name "aguescribano87"
git config --global user.email "[email protected]"
- name: Run Lerna version
run: yarn lerna version patch --yes
- name: Run Lerna publish
run: yarn lerna publish from-package --yes
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Push changes to master
run: git push origin master --follow-tags
- name: Checkout and update development branch
run: |
git fetch origin development
git checkout development
git merge master
git push origin development --follow-tags