Skip to content

Commit

Permalink
ci: tinker
Browse files Browse the repository at this point in the history
  • Loading branch information
gruhn committed Feb 11, 2025
1 parent cc200c4 commit 0e01d62
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- debug-corepack-ci

jobs:
release:
Expand All @@ -14,12 +15,16 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- run: corepack enable
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 18
cache: pnpm
- name: Setup corepack
run: |
# fix corepack issue: https://github.com/nodejs/corepack/issues/627
pnpm install -g corepack@latest
corepack enable
- name: Install & Build
env:
VITEPRESS_BASE: /vue-qrcode-reader/
Expand All @@ -28,15 +33,15 @@ jobs:
pnpm run type-check
pnpm run build
pnpm run docs:build
- name: Deploy Docs
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/.vitepress/dist
clean-exclude: pr-preview
force: false
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
# - name: Deploy Docs
# uses: JamesIves/[email protected]
# with:
# branch: gh-pages
# folder: docs/.vitepress/dist
# clean-exclude: pr-preview
# force: false
# - name: Release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: npx semantic-release

0 comments on commit 0e01d62

Please sign in to comment.