Skip to content

v6.0.2

v6.0.2 #59

Workflow file for this run

name: Publish
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Node 🧰
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install 📦
run: |
yarn --immutable
npm install -g @oclif/dev-cli
- name: Build 🛠
run: yarn build
- name: Publish 🚀 PRERELEASE
if: 'github.event.release.prerelease'
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
./node_modules/.bin/lerna publish from-git --dist-tag next --require-scripts --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Publish 🚀 PRODUCTION
if: '!github.event.release.prerelease'
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
./node_modules/.bin/lerna publish from-git --require-scripts --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}