mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
55 lines
1.0 KiB
YAML
55 lines
1.0 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
lint:
|
|
uses: ./.github/workflows/lint.yaml
|
|
|
|
test:
|
|
uses: ./.github/workflows/test.yaml
|
|
|
|
release:
|
|
if: github.repository == 'pengzhanbo/vuepress-theme-plume'
|
|
needs: [test, lint]
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4
|
|
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version: 24
|
|
registry-url: https://registry.npmjs.org
|
|
cache: pnpm
|
|
|
|
- name: Install deps
|
|
run: pnpm install
|
|
|
|
- name: Update npm
|
|
run: npm i -g npm@latest
|
|
|
|
- name: Build And Publish
|
|
id: publish
|
|
run: |
|
|
pnpm build
|
|
pnpm release:publish --no-git-checks
|
|
pnpm release:sync
|
|
|
|
- run: npx changelogithub
|
|
env:
|
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
|
|
deploy:
|
|
uses: ./.github/workflows/docs-deploy.yaml
|