Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lideming committed Oct 31, 2023
1 parent 6235617 commit 3bc6150
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 26 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Build & Demo Deploy
# events but only for the master branch
on:
push:
branches: [ master ]
branches: [master]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -19,30 +19,26 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x

- name: Cache .pnpm-store
uses: actions/cache@v1
# https://pnpm.io/continuous-integration#github-actions
- uses: pnpm/action-setup@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-node14-${{ hashFiles('**/pnpm-lock.yaml') }}
version: 8

- name: Install pnpm
run: curl -f https://get.pnpm.io/v6.js | node - add --global pnpm@6
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm

- name: Install dependencies
if: steps.cache_node_modules.outputs.cache-hit != 'true'
run: |
pnpm install --frozen-lockfile
- name: Build
run: pnpm run buildall

- name: Pre depoly
- name: Pre deploy
run: pnpm run buildpages

# Runs a set of commands using the runners shell
Expand Down
19 changes: 7 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,18 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Use Node.js 14.x
uses: actions/setup-node@v2
# https://pnpm.io/continuous-integration#github-actions
- uses: pnpm/action-setup@v2
with:
node-version: 14.x
registry-url: 'https://registry.npmjs.org'
version: 8

- name: Cache .pnpm-store
uses: actions/cache@v1
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-node14-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Install pnpm
run: curl -f https://get.pnpm.io/v6.js | node - add --global pnpm@6
node-version: 18
cache: pnpm

- name: Install dependencies
if: steps.cache_node_modules.outputs.cache-hit != 'true'
run: |
pnpm install --frozen-lockfile
Expand Down

1 comment on commit 3bc6150

@vercel
Copy link

@vercel vercel bot commented on 3bc6150 Oct 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

webfx – ./

webfx-git-master-lideming.vercel.app
webfx-lideming.vercel.app
webfx.yuuza.net

Please sign in to comment.