Skip to content

fix(skills): quality sweep — compile errors, stale facts, contradicti… #153

fix(skills): quality sweep — compile errors, stale facts, contradicti…

fix(skills): quality sweep — compile errors, stale facts, contradicti… #153

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write
pull-requests: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 10
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Create Release Pull Request or Tag
id: changesets
uses: changesets/action@v1
with:
version: pnpm changeset version
commit: 'chore: version packages'
title: 'chore: version packages'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Git Tag and GitHub Release
if: steps.changesets.outputs.hasChangesets == 'false'
run: |
# Get the version from package.json
VERSION=$(node -p "require('./package.json').version")
TAG_NAME="v${VERSION}"
# Check if tag already exists
if git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
echo "Tag $TAG_NAME already exists, skipping"
exit 0
fi
# Create and push tag
git tag -a "$TAG_NAME" -m "Release $TAG_NAME"
git push origin "$TAG_NAME"
# Create GitHub Release
gh release create "$TAG_NAME" \
--title "$TAG_NAME" \
--notes "See [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md) for details."
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}