Skip to content

v1.8.0

v1.8.0 #17

Workflow file for this run

# cSpell:ignore preid
name: Publish
on:
push:
branches:
- main
- release/*
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
# On changes to main, publish to the "next" dist tag
publish-next:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_KEY }}
- name: Prepare ✅
uses: ./.github/actions/prepare
- name: Build 🔧
run: npm run build
- name: Publish 🚀
run: npx lerna publish --conventional-commits --create-release github --conventional-bump-prerelease --preid next --dist-tag next --yes
# On changes to release branches, publish to the "latest" dist tag
publish:
if: startsWith(github.ref, 'refs/heads/release/')
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_KEY }}
- name: Prepare ✅
uses: ./.github/actions/prepare
- name: Build 🔧
run: npm run build
- name: Publish 🚀
run: npx lerna publish --conventional-commits --create-release github --conventional-graduate --yes