Skip to content

Modify display-name rule entry in migration docs #5983

Modify display-name rule entry in migration docs

Modify display-name rule entry in migration docs #5983

Workflow file for this run

name: Publish
on:
push:
branches:
- main
- "2.0.0"
tags-ignore:
- "**"
paths-ignore:
- "**/*.gitignore"
- .editorconfig
- apps/**
- examples/**
- decisions/**
pull_request: null
jobs:
publish:
name: Publish
runs-on: ubuntu-24.04-arm
permissions:
contents: read
id-token: write
steps:
- name: Setup node@24
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: 24
registry-url: "https://registry.npmjs.org"
- name: Install pnpm
run: npm install -g pnpm
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Install dependencies
run: pnpm install
- name: Build front-end assets
run: pnpm run build
- name: Run lint
run: pnpm run lint
- name: Publish
run: |
if git log -1 --pretty=%B | grep "^release: [0-9]\+\.[0-9]\+\.[0-9]\+$";
then
pnpm --filter "./packages/**" publish --provenance --access public
elif git log -1 --pretty=%B | grep "^release: [0-9]\+\.[0-9]\+\.[0-9]\+-beta\.[0-9]\+$";
then
pnpm --filter "./packages/**" publish --provenance --access public --tag beta --no-git-checks
elif git log -1 --pretty=%B | grep "^release: [0-9]\+\.[0-9]\+\.[0-9]\+-next\.[0-9]\+$";
then
pnpm --filter "./packages/**" publish --provenance --access public --tag next --no-git-checks
else
echo "Not a release, skipping publish"
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true