Skip to content

update git fetch depth for the develop release jobs #13

update git fetch depth for the develop release jobs

update git fetch depth for the develop release jobs #13

name: Release NPM Packages
on:
workflow_dispatch:
push:
branches:
- develop
jobs:
release:
runs-on: ubuntu-latest
environment: develop
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 22.9.0
cache: npm
- name: "Install dependencies"
run: npm ci --workspaces --include-workspace-root --force
- name: "Build"
run: npm run build
- name: "NPM Identity"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
- name: Run Lerna Release
run: npm run publish:canary
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}