Skip to content

(WIP) docs: add labels to rules docs #3274

(WIP) docs: add labels to rules docs

(WIP) docs: add labels to rules docs #3274

Workflow file for this run

name: Publish
on:
push:
branches:
- main
tags-ignore:
- "**"
paths-ignore:
- "**/*.gitignore"
- .editorconfig
- adrs/**
- docs/**
- examples/**
- website/**
- scripts/**
pull_request: null
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
# Workaround for GitHub Actions bug
- name: Enable Corepack
run: corepack enable
- name: Setup node@20
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- name: Enable Corepack
run: corepack enable
- 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
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
else
echo "Not a release, skipping publish"
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true