Skip to content

v4.8.0-alpha.4

v4.8.0-alpha.4 #52

Workflow file for this run

name: Publish
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Node 🧰
uses: actions/setup-node@v3
with:
node-version: 18.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 }}