Skip to content

Release Project

Release Project #59

Workflow file for this run

name: Release Project
on:
workflow_run:
workflows: [ "Detect Deps" ]
types:
- completed
workflow_dispatch:
permissions:
contents: write
id-token: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
ref: ${{ github.ref }}
- name: Install pnpm
uses: pnpm/action-setup@v6
with:
version: 10.33.0
- name: Install Node
uses: actions/setup-node@v6
with:
node-version: 24.14.1
registry-url: https://registry.npmjs.org/
package-manager-cache: false
- name: Set Git Identity
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Install deps
run: pnpm install --frozen-lockfile
- name: Sync vite version
run: pnpm sync:vite
- name: Commit updated package.json
run: |
git add package.json pnpm-lock.yaml
git commit -m "chore: sync vite version with vitepress" || echo "No changes"
git push
- name: Build
run: pnpm build
- name: Release
run: pnpm exec release --ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}