Skip to content

Commit

Permalink
chore: docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
rick-hup committed Nov 23, 2024
1 parent 413997c commit ec23329
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm i
run: pnpm i --no-frozen-lockfile


- name: Build Docs
Expand Down
92 changes: 46 additions & 46 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
release:
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 9
run_install: false

- name: Set node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
registry-url: 'https://registry.npmjs.org'

- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Install Dependencies
run: pnpm i

- name: PNPM build
run: pnpm run build

- name: Publish to NPM
run: pnpm -r publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true
# name: Release

# on:
# push:
# tags:
# - 'v*'

# jobs:
# release:
# permissions:
# id-token: write
# contents: write
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0

# - uses: pnpm/action-setup@v2
# name: Install pnpm
# with:
# version: 9
# run_install: false

# - name: Set node
# uses: actions/setup-node@v4
# with:
# node-version: 20
# cache: pnpm
# registry-url: 'https://registry.npmjs.org'

# - run: npx changelogithub
# env:
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

# - name: Install Dependencies
# run: pnpm i --no-frozen-lockfile

# - name: PNPM build
# run: pnpm run build

# - name: Publish to NPM
# run: pnpm -r publish --access public --no-git-checks
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# NPM_CONFIG_PROVENANCE: true
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@vue/tsconfig": "^0.5.1",
"autoprefixer": "^10.4.16",
"lodash.template": "^4.5.0",
"motion-v": "0.2.1",
"motion-v": "0.2.2",
"pathe": "^1.1.2",
"rimraf": "^5.0.5",
"shikiji": "^0.10.0-beta.9",
Expand Down

0 comments on commit ec23329

Please sign in to comment.