Skip to content

Workflow file for this run

name: Release
# Temporarily disable until issues resolved
# on:
# release:
# types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
ref: "master"
persist-credentials: false
- name: "Setup Node v16"
uses: actions/setup-node@v3
with:
node-version: '16'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: "Setup git user"
run: |
git config user.name "${{ github.actor }}"
git config user.email "bot@callstack.io"
- name: "Prelease"
if: "github.event.release.prerelease"
env:
GH_TOKEN: ${{ github.token }}
run: |
npx lerna version --conventional-commits --conventional-prerelease --preid alpha --yes
npx lerna publish from-git --no-verify-access --no-changelog --yes
- name: "Release"
if: "!github.event.release.prerelease"
env:
GH_TOKEN: ${{ github.token }}
run: |
npx lerna version --conventional-commits --yes
npx lerna publish from-git --no-verify-access --no-changelog --yes