Skip to content

chore(release): published new version #6

chore(release): published new version

chore(release): published new version #6

Workflow file for this run

name: Publish Packages
on:
push:
tags:
- "v*"
permissions:
id-token: write
contents: read
env:
NX_CLOUD_DISTRIBUTED_EXECUTION: true
NX_CLOUD_ACCESS_TOKEN: '${{ secrets.NX_CLOUD_ACCESS_TOKEN }}'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
name: Checkout Source
with:
fetch-depth: 0
- uses: actions/setup-node@v6
name: Setup Node.js
with:
node-version: 24
registry-url: https://registry.npmjs.org
- uses: pnpm/action-setup@v4.2.0
name: Install pnpm
with:
run_install: false
- name: Initialize Nx Cloud
run: npx nx-cloud start-ci-run --distribute-on="3 linux-medium-js"
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v5
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: pnpm install
- name: Build All Packages
run: npx nx run-many -t build:ci
env:
CI: true
- name: Publish to NPM (OIDC Auth)
run: |
TAG="${GITHUB_REF#refs/tags/}"
BASE_CMD="npx lerna publish from-package --ignore-scripts"
if [[ "$TAG" == *"-alpha."* ]]; then
$BASE_CMD --pre-dist-tag alpha --preid alpha
elif [[ "$TAG" == *"-beta."* ]]; then
$BASE_CMD --pre-dist-tag beta --preid beta
else
$BASE_CMD
fi
- name: Stop Nx Cloud Session
run: npx nx fix-ci
if: always()