build: publish v2.0.0-rc.60 #60
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
tags: | |
- 'v*' | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: pnpm | |
- name: Install deps | |
run: pnpm install --frozen-lockfile | |
- name: Build Project | |
run: pnpm bundle | |
- name: Update npmrc | |
run: | | |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc | |
- name: Publish packages | |
run: pnpm release:publish | |
- name: Create release | |
if: ${{ github.event_name != 'workflow_dispatch' }} | |
id: release_tag | |
uses: yyx990803/release-tag@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
body: | | |
Please refer to [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md) for details. | |
deploy-docs: | |
name: Deploy ecosystem docs to Netlify | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: pnpm | |
- name: Install deps | |
run: pnpm install --frozen-lockfile | |
- name: Build Project | |
run: pnpm build | |
- name: Docs build | |
env: | |
NODE_OPTIONS: --max_old_space_size=8192 | |
run: pnpm --filter @vuepress/ecosystem-docs docs:build | |
- name: Deploy docs | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: netlify | |
folder: docs/.vuepress/dist | |
single-commit: true |