Lerna Publish #994
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 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 }} |