Skip to content

chore: release v5.5.1 #20

chore: release v5.5.1

chore: release v5.5.1 #20

Workflow file for this run

name: Publish Package
on:
push:
tags:
- 'v*'
permissions:
id-token: write
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- name: Update npm
run: npm install -g npm@latest
- run: pnpm install
- run: pnpm build
- run: pnpm run smoke:pack
- run: pnpm publish --no-git-checks --provenance --access public
- name: Detect previous tag
id: tags
run: |
previous_tag="$(git describe --tags --abbrev=0 "${GITHUB_REF_NAME}^" 2>/dev/null || true)"
echo "previous_tag=$previous_tag" >> "$GITHUB_OUTPUT"
- name: Create GitHub release with changelog
run: |
args=(--to "$GITHUB_REF_NAME")
if [ -n "${{ steps.tags.outputs.previous_tag }}" ]; then
args+=(--from "${{ steps.tags.outputs.previous_tag }}")
fi
npx --yes changelogithub@14.0.0 "${args[@]}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}