Skip to content

chore: version packages #171

chore: version packages

chore: version packages #171

Workflow file for this run

name: Publish
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
publish_npm:
name: Publish production NPM packages
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, 'chore: version packages')"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare repository
run: git checkout main
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: Install monorepo deps
run: npm ci
- name: Setup .npmrc
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish
run: npx lerna publish from-package --yes