From 9eacabe7bde722893ba7124b8cab52e09a8c2077 Mon Sep 17 00:00:00 2001 From: v1xingyue Date: Wed, 8 Jan 2025 09:40:13 +0800 Subject: [PATCH 1/5] Update deploy.yml --- .github/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 650e950..9729e6b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,7 +25,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20' - cache: 'pnpm' + cache: 'npm' - name: Install Pnpm run: npm install -g pnpm @@ -34,7 +34,7 @@ jobs: run: pnpm install - name: Build - run: npm run build + run: pnpm run build - name: Add cname run: echo "eliza101.xyz" > ./packages/page/dist//CNAME @@ -46,4 +46,4 @@ jobs: publish_dir: ./packages/page/dist/ # 保持提交历史 force_orphan: false - commit_message: 'deploy: ${{ github.event.head_commit.message }}' \ No newline at end of file + commit_message: 'deploy: ${{ github.event.head_commit.message }}' From 79b25c3113d8cd6c586869e01099b4590fd8e2e0 Mon Sep 17 00:00:00 2001 From: v1xingyue Date: Wed, 8 Jan 2025 09:43:07 +0800 Subject: [PATCH 2/5] Update deploy.yml --- .github/workflows/deploy.yml | 49 ++++++++++++++---------------------- 1 file changed, 19 insertions(+), 30 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9729e6b..9c07d33 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,35 +15,24 @@ permissions: id-token: write jobs: - build-and-deploy: + build: runs-on: ubuntu-latest + steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - cache: 'npm' - - - name: Install Pnpm - run: npm install -g pnpm - - - name: Install - run: pnpm install - - - name: Build - run: pnpm run build - - - name: Add cname - run: echo "eliza101.xyz" > ./packages/page/dist//CNAME - - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./packages/page/dist/ - # 保持提交历史 - force_orphan: false - commit_message: 'deploy: ${{ github.event.head_commit.message }}' + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'pnpm' + + - name: Install pnpm + run: npm install -g pnpm + + - name: Install dependencies + run: pnpm install + + - name: Run build + run: pnpm run build From 87140d950a72712cba9b1a07dd701204c6fe5a84 Mon Sep 17 00:00:00 2001 From: v1xingyue Date: Wed, 8 Jan 2025 09:47:50 +0800 Subject: [PATCH 3/5] Update deploy.yml --- .github/workflows/deploy.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9c07d33..afef1b0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,13 +26,9 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20' - cache: 'pnpm' + cache: 'npm' - name: Install pnpm run: npm install -g pnpm - - name: Install dependencies - run: pnpm install - - - name: Run build - run: pnpm run build + From 9cfdf3ff8780ef95d1d5cd306c929bb2a9173962 Mon Sep 17 00:00:00 2001 From: v1xingyue Date: Wed, 8 Jan 2025 09:51:01 +0800 Subject: [PATCH 4/5] Update deploy.yml --- .github/workflows/deploy.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index afef1b0..7fdbf4b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,7 +13,7 @@ permissions: contents: write pages: write id-token: write - + jobs: build: runs-on: ubuntu-latest @@ -26,9 +26,13 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20' - cache: 'npm' + cache: 'pnpm' - name: Install pnpm run: npm install -g pnpm - + - name: Install dependencies + run: pnpm install + + - name: Run build + run: pnpm run build From 1edd6dd15ca70e93daff39fda8ccaee24d578ad3 Mon Sep 17 00:00:00 2001 From: v1xingyue Date: Wed, 8 Jan 2025 09:54:32 +0800 Subject: [PATCH 5/5] Update deploy.yml --- .github/workflows/deploy.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7fdbf4b..4b339ba 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,11 +22,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Setup Node.js - uses: actions/setup-node@v4 + - uses: pnpm/action-setup@v3 with: - node-version: '20' - cache: 'pnpm' + version: 9.4.0 + + - uses: actions/setup-node@v4 + with: + node-version: "23" + cache: "pnpm" - name: Install pnpm run: npm install -g pnpm