Skip to content

Fix publish issue

Fix publish issue #3

Workflow file for this run

name: Publish
on:
push:
branches:
- main
pull_request:
types: [closed]
branches:
- main
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- run: yarn install --immutable
- uses: nrwl/nx-set-shas@v4
- if: github.ref != 'refs/heads/main'
run: git branch --track main origin/main
- run: yarn nx affected -t build --parallel=3
- name: "Version and publish"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git config user.name "${{ secrets.RELEASE_USER }}"
git config user.email "${{ secrets.RELEASE_USER_EMAIL }}"
yarn lerna version --conventional-commits --conventional-prerelease=* --yes
yarn lerna publish from-git --yes --no-private