Skip to content

Commit

Permalink
ci: Update CI/CD pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Jun 19, 2024
1 parent bf29374 commit 0f85686
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Node 16
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16'
- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: 'lts/*'
cache: pnpm
- name: Install
run: pnpm install
run: corepack pnpm install
- name: Build
run: pnpm build
run: corepack pnpm build
- name: Deploy to Pages
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist/clashsoft-apps/
Expand Down

0 comments on commit 0f85686

Please sign in to comment.