From 0ea0b2b1a843a1abd69a4506d109c34eb13ebe6d Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 09:45:27 +0800 Subject: [PATCH 01/38] Update website.yml --- .github/workflows/website.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 1fb4cb3c838..de3bce7789b 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -1,4 +1,4 @@ -name: Website +name: Website Build on: push: @@ -50,3 +50,29 @@ jobs: - name: Build Website run: pnpm -F website build + +name: Website Preview +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} +on: + push: + branches-ignore: + - main + paths: + - "packages/website/**" + - "packages/protocol/contracts/**" +jobs: + Deploy-Preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Vercel CLI + run: npm install --global vercel@latest + - name: Pull Vercel Environment Information + run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts + run: vercel build --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} + From 180f31fd75e11c99efcb31df791642c5e553a3e8 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 09:49:39 +0800 Subject: [PATCH 02/38] more --- .../{website.yml => website_build.yml} | 25 ------------------- .github/workflows/website_preview.yml | 25 +++++++++++++++++++ 2 files changed, 25 insertions(+), 25 deletions(-) rename .github/workflows/{website.yml => website_build.yml} (60%) create mode 100644 .github/workflows/website_preview.yml diff --git a/.github/workflows/website.yml b/.github/workflows/website_build.yml similarity index 60% rename from .github/workflows/website.yml rename to .github/workflows/website_build.yml index de3bce7789b..0fb96324451 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website_build.yml @@ -51,28 +51,3 @@ jobs: - name: Build Website run: pnpm -F website build -name: Website Preview -env: - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} -on: - push: - branches-ignore: - - main - paths: - - "packages/website/**" - - "packages/protocol/contracts/**" -jobs: - Deploy-Preview: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Install Vercel CLI - run: npm install --global vercel@latest - - name: Pull Vercel Environment Information - run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} - - name: Build Project Artifacts - run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - - name: Deploy Project Artifacts to Vercel - run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} - diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml new file mode 100644 index 00000000000..fd3cd42adb6 --- /dev/null +++ b/.github/workflows/website_preview.yml @@ -0,0 +1,25 @@ +name: Website Preview +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} +on: + push: + branches-ignore: + - main + paths: + - "packages/website/**" + - "packages/protocol/contracts/**" +jobs: + Deploy-Preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Vercel CLI + run: npm install --global vercel@latest + - name: Pull Vercel Environment Information + run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts + run: vercel build --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} + From 0f0a59fd89d9eaa4259abf4b43e0de265e112f32 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 09:50:51 +0800 Subject: [PATCH 03/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index fd3cd42adb6..447dff136be 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -6,9 +6,9 @@ on: push: branches-ignore: - main - paths: - - "packages/website/**" - - "packages/protocol/contracts/**" + # paths: + # - "packages/website/**" + # - "packages/protocol/contracts/**" jobs: Deploy-Preview: runs-on: ubuntu-latest From 6380450e3c2d0286d60691cfbde2f698a255251d Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 09:52:53 +0800 Subject: [PATCH 04/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 447dff136be..7c7f1a285c1 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -14,12 +14,26 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: "16.15" + + - uses: pnpm/action-setup@v2 + name: Install pnpm + id: pnpm-install + with: + version: 7 + run_install: false + - name: Install Vercel CLI run: npm install --global vercel@latest + - name: Pull Vercel Environment Information run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} From c9ce732465fc36320e123d210808de730152cc13 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 09:55:52 +0800 Subject: [PATCH 05/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 7c7f1a285c1..5e3909ec3d1 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -13,6 +13,11 @@ jobs: Deploy-Preview: runs-on: ubuntu-latest steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.11.0 + with: + access_token: ${{ github.token }} + - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: @@ -25,8 +30,25 @@ jobs: version: 7 run_install: false + - name: Get pnpm store directory + id: pnpm-cache + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + + - uses: actions/cache@v3 + name: Setup pnpm cache + with: + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + + - name: Install Packages + run: pnpm -F website install + - name: Install Vercel CLI - run: npm install --global vercel@latest + run: pnpm install --global vercel@latest - name: Pull Vercel Environment Information run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} From f75b1545ec57b967655fb474129d988d5c265278 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 10:01:28 +0800 Subject: [PATCH 06/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 5e3909ec3d1..ea37751a58d 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -59,3 +59,24 @@ jobs: run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} +jobs: + capture_vercel_preview_url: + name: Capture Vercel preview URL + runs-on: "ubuntu-latest" + steps: + - uses: aaimio/vercel-preview-url-action@v1 + id: vercel_preview_url + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Below is merely an example of what you could do with the preview URL. + # The preview URL is accessed through ${{ steps..outputs.vercel_preview_url }} + - uses: actions/github-script@v3 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + github.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: 'The preview URL is: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}.' + }); \ No newline at end of file From 4ec688e59b7b6884bcbef182b54fcfd0e3b62bf2 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 10:02:45 +0800 Subject: [PATCH 07/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index ea37751a58d..d8a69bffdbd 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -59,7 +59,6 @@ jobs: run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} -jobs: capture_vercel_preview_url: name: Capture Vercel preview URL runs-on: "ubuntu-latest" From d21efdf128d893a63251954776fc53923aa425f2 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 10:04:48 +0800 Subject: [PATCH 08/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index d8a69bffdbd..aee4507fa5c 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -59,7 +59,7 @@ jobs: run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} - capture_vercel_preview_url: + Capture-Vrcel-Ppreview-URL: name: Capture Vercel preview URL runs-on: "ubuntu-latest" steps: From 5326de2597ce75a17ddbd210d8f355e567377bcd Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 10:06:34 +0800 Subject: [PATCH 09/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index aee4507fa5c..4be86f2c209 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -1,7 +1,7 @@ name: Website Preview env: VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_WEBSITE_PROJECT_ID }} on: push: branches-ignore: From fdc1badfe2a9b5c570168caf16809549e4a7e079 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 10:07:51 +0800 Subject: [PATCH 10/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 4be86f2c209..a848e845137 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -59,10 +59,6 @@ jobs: run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} - Capture-Vrcel-Ppreview-URL: - name: Capture Vercel preview URL - runs-on: "ubuntu-latest" - steps: - uses: aaimio/vercel-preview-url-action@v1 id: vercel_preview_url with: From c2f384edfa85a984ce7a09dcff8f3cea112a1581 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 10:09:54 +0800 Subject: [PATCH 11/38] Update website_build.yml --- .github/workflows/website_build.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/website_build.yml b/.github/workflows/website_build.yml index 0fb96324451..deae46de459 100644 --- a/.github/workflows/website_build.yml +++ b/.github/workflows/website_build.yml @@ -6,9 +6,6 @@ on: paths: - "packages/website/**" - "packages/protocol/contracts/**" - pull_request: - paths: - - "packages/website/**" jobs: build: From 33b1429c2b36878094af36e9c93e4994c6a9c79b Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 10:24:02 +0800 Subject: [PATCH 12/38] aaaaaa aaaa --- .github/workflows/website_build.yml | 3 +++ .github/workflows/website_preview.yml | 2 +- .github/workflows/whitepaper.yml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/website_build.yml b/.github/workflows/website_build.yml index deae46de459..0fb96324451 100644 --- a/.github/workflows/website_build.yml +++ b/.github/workflows/website_build.yml @@ -6,6 +6,9 @@ on: paths: - "packages/website/**" - "packages/protocol/contracts/**" + pull_request: + paths: + - "packages/website/**" jobs: build: diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index a848e845137..49a4fff7064 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -10,7 +10,7 @@ on: # - "packages/website/**" # - "packages/protocol/contracts/**" jobs: - Deploy-Preview: + vercel-preview: runs-on: ubuntu-latest steps: - name: Cancel Previous Runs diff --git a/.github/workflows/whitepaper.yml b/.github/workflows/whitepaper.yml index 41351fb14e6..a478865c66d 100644 --- a/.github/workflows/whitepaper.yml +++ b/.github/workflows/whitepaper.yml @@ -8,7 +8,7 @@ on: paths: - "packages/whitepaper/**" jobs: - build_latex: + build-latex: runs-on: ubuntu-latest steps: - name: Cancel Previous Runs From c305a6049762add4dd4c27c3a341b5d4d42af352 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 10:29:43 +0800 Subject: [PATCH 13/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 49a4fff7064..e1fe011e0d6 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -59,12 +59,14 @@ jobs: run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} - - uses: aaimio/vercel-preview-url-action@v1 + - name: vercel-preview-url + uses: zentered/vercel-preview-url@v1.1.3 id: vercel_preview_url + env: + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # Below is merely an example of what you could do with the preview URL. - # The preview URL is accessed through ${{ steps..outputs.vercel_preview_url }} + vercel_project_id: ${{ secrets.VERCEL_WEBSITE_PROJECT_ID }} + - uses: actions/github-script@v3 with: github-token: ${{secrets.GITHUB_TOKEN}} @@ -73,5 +75,5 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: 'The preview URL is: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}.' + body: 'The preview URL is: https://${{ steps.vercel_preview_url.outputs.preview_url }}' }); \ No newline at end of file From 654db7f67e91f7438d38699f90dcaa50472dda5a Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 14:23:02 +0800 Subject: [PATCH 14/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index e1fe011e0d6..00a3be9327d 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -55,17 +55,9 @@ jobs: - name: Build Project Artifacts run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - - name: Deploy Project Artifacts to Vercel - - run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} - - name: vercel-preview-url - uses: zentered/vercel-preview-url@v1.1.3 - id: vercel_preview_url - env: - VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} - with: - vercel_project_id: ${{ secrets.VERCEL_WEBSITE_PROJECT_ID }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > url.txt - uses: actions/github-script@v3 with: @@ -75,5 +67,5 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: 'The preview URL is: https://${{ steps.vercel_preview_url.outputs.preview_url }}' + body: 'The preview URL is: https://$(cat url.txt)' }); \ No newline at end of file From b264b6effca609f292f56d1cbd304950f7b8448c Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 14:31:54 +0800 Subject: [PATCH 15/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 00a3be9327d..56eca350e02 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -57,9 +57,10 @@ jobs: run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel - run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > url.txt + run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > ./url.txt - uses: actions/github-script@v3 + name: Create Preview Comment with: github-token: ${{secrets.GITHUB_TOKEN}} script: | @@ -67,5 +68,5 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: 'The preview URL is: https://$(cat url.txt)' + body: 'Preview the change at: https://$(cat ./url.txt)' }); \ No newline at end of file From 461efe862e0bb7162d8ee54c9d06d4a4fde303df Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 14:34:30 +0800 Subject: [PATCH 16/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 56eca350e02..cd69607521b 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -59,7 +59,7 @@ jobs: - name: Deploy Project Artifacts to Vercel run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > ./url.txt - - uses: actions/github-script@v3 + - uses: actions/github-script@v6 name: Create Preview Comment with: github-token: ${{secrets.GITHUB_TOKEN}} From 179d42d518442b226cfc5fad2a8c2848e32d3d6e Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 14:35:08 +0800 Subject: [PATCH 17/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index cd69607521b..953755403c3 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -64,7 +64,7 @@ jobs: with: github-token: ${{secrets.GITHUB_TOKEN}} script: | - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, From 4a98a8e22723ba122f54397740d4a4ecfe896b93 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 14:44:50 +0800 Subject: [PATCH 18/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 953755403c3..a1cffe9b562 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -62,11 +62,10 @@ jobs: - uses: actions/github-script@v6 name: Create Preview Comment with: - github-token: ${{secrets.GITHUB_TOKEN}} script: | github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, body: 'Preview the change at: https://$(cat ./url.txt)' - }); \ No newline at end of file + }) From 7dcced6e50093a5e991e894b5ab924a5628fd4de Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 14:51:52 +0800 Subject: [PATCH 19/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 74 +++++++++++++-------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index a1cffe9b562..f3228ee9cf0 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -13,51 +13,51 @@ jobs: vercel-preview: runs-on: ubuntu-latest steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 - with: - access_token: ${{ github.token }} + # - name: Cancel Previous Runs + # uses: styfle/cancel-workflow-action@0.11.0 + # with: + # access_token: ${{ github.token }} - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: "16.15" + # - uses: actions/checkout@v3 + # - uses: actions/setup-node@v3 + # with: + # node-version: "16.15" - - uses: pnpm/action-setup@v2 - name: Install pnpm - id: pnpm-install - with: - version: 7 - run_install: false + # - uses: pnpm/action-setup@v2 + # name: Install pnpm + # id: pnpm-install + # with: + # version: 7 + # run_install: false - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + # - name: Get pnpm store directory + # id: pnpm-cache + # shell: bash + # run: | + # echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 - name: Setup pnpm cache - with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + # - uses: actions/cache@v3 + # name: Setup pnpm cache + # with: + # path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + # key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + # restore-keys: | + # ${{ runner.os }}-pnpm-store- - - name: Install Packages - run: pnpm -F website install + # - name: Install Packages + # run: pnpm -F website install - - name: Install Vercel CLI - run: pnpm install --global vercel@latest + # - name: Install Vercel CLI + # run: pnpm install --global vercel@latest - - name: Pull Vercel Environment Information - run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} + # - name: Pull Vercel Environment Information + # run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} - - name: Build Project Artifacts - run: vercel build --token=${{ secrets.VERCEL_TOKEN }} + # - name: Build Project Artifacts + # run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - - name: Deploy Project Artifacts to Vercel - run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > ./url.txt + # - name: Deploy Project Artifacts to Vercel + # run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > ./url.txt - uses: actions/github-script@v6 name: Create Preview Comment @@ -67,5 +67,5 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: 'Preview the change at: https://$(cat ./url.txt)' + body: '👀 Preview the changes at: https://taiko.xyz' }) From 4bba39d551a659b73f492b86f60fa94e327295b8 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 14:53:14 +0800 Subject: [PATCH 20/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index f3228ee9cf0..adf349acb2f 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -59,7 +59,7 @@ jobs: # - name: Deploy Project Artifacts to Vercel # run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > ./url.txt - - uses: actions/github-script@v6 + - uses: actions/github-script@v5 name: Create Preview Comment with: script: | From a80e002b23e8e8e0873b34948fc01d31ca85ac73 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 14:55:56 +0800 Subject: [PATCH 21/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index adf349acb2f..6a96b6f8b71 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -3,7 +3,7 @@ env: VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_WEBSITE_PROJECT_ID }} on: - push: + pull_request: branches-ignore: - main # paths: @@ -62,9 +62,9 @@ jobs: - uses: actions/github-script@v5 name: Create Preview Comment with: + github-token: ${{secrets.ACTIONS_TOKEN}} script: | github.rest.issues.createComment({ - issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, body: '👀 Preview the changes at: https://taiko.xyz' From f335c2554715cdf3e1c976946dd0256f7ae77bbd Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 14:57:32 +0800 Subject: [PATCH 22/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 6a96b6f8b71..c5c363ba6f1 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -4,6 +4,10 @@ env: VERCEL_PROJECT_ID: ${{ secrets.VERCEL_WEBSITE_PROJECT_ID }} on: pull_request: + types: + - opened + - reopened + - edited branches-ignore: - main # paths: From 737a05dbc430441046ec8e4390f0991b7372d7e4 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 14:57:57 +0800 Subject: [PATCH 23/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index c5c363ba6f1..0cb44291123 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -4,12 +4,10 @@ env: VERCEL_PROJECT_ID: ${{ secrets.VERCEL_WEBSITE_PROJECT_ID }} on: pull_request: - types: - - opened - - reopened - - edited - branches-ignore: - - main + # types: + # - opened + # - reopened + # - edited # paths: # - "packages/website/**" # - "packages/protocol/contracts/**" From cb585b98c53c2129e8d07a39639fdae5d4a892a2 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 14:59:31 +0800 Subject: [PATCH 24/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 0cb44291123..6259fd4ceba 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -64,7 +64,7 @@ jobs: - uses: actions/github-script@v5 name: Create Preview Comment with: - github-token: ${{secrets.ACTIONS_TOKEN}} + github-token: ${{ github.token }} script: | github.rest.issues.createComment({ owner: context.repo.owner, From 539c25f9ab6a4d0e43a467f5771bc78f64b6c0e1 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 15:08:48 +0800 Subject: [PATCH 25/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 6259fd4ceba..e2bb94cb9f5 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -67,6 +67,7 @@ jobs: github-token: ${{ github.token }} script: | github.rest.issues.createComment({ + issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, body: '👀 Preview the changes at: https://taiko.xyz' From 92bfb003c381fd466b13eab38fbcad06c03b7627 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 15:12:34 +0800 Subject: [PATCH 26/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 74 +++++++++++++-------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index e2bb94cb9f5..f09a39a3eeb 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -15,51 +15,51 @@ jobs: vercel-preview: runs-on: ubuntu-latest steps: - # - name: Cancel Previous Runs - # uses: styfle/cancel-workflow-action@0.11.0 - # with: - # access_token: ${{ github.token }} + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.11.0 + with: + access_token: ${{ github.token }} - # - uses: actions/checkout@v3 - # - uses: actions/setup-node@v3 - # with: - # node-version: "16.15" + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: "16.15" - # - uses: pnpm/action-setup@v2 - # name: Install pnpm - # id: pnpm-install - # with: - # version: 7 - # run_install: false + - uses: pnpm/action-setup@v2 + name: Install pnpm + id: pnpm-install + with: + version: 7 + run_install: false - # - name: Get pnpm store directory - # id: pnpm-cache - # shell: bash - # run: | - # echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + - name: Get pnpm store directory + id: pnpm-cache + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - # - uses: actions/cache@v3 - # name: Setup pnpm cache - # with: - # path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - # key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - # restore-keys: | - # ${{ runner.os }}-pnpm-store- + - uses: actions/cache@v3 + name: Setup pnpm cache + with: + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- - # - name: Install Packages - # run: pnpm -F website install + - name: Install Packages + run: pnpm -F website install - # - name: Install Vercel CLI - # run: pnpm install --global vercel@latest + - name: Install Vercel CLI + run: pnpm install --global vercel@latest - # - name: Pull Vercel Environment Information - # run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} + - name: Pull Vercel Environment Information + run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} - # - name: Build Project Artifacts - # run: vercel build --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts + run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - # - name: Deploy Project Artifacts to Vercel - # run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > ./url.txt + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > ./url.txt - uses: actions/github-script@v5 name: Create Preview Comment @@ -70,5 +70,5 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: '👀 Preview the changes at: https://taiko.xyz' + body: '👀 Preview the changes at: https://$(cat ./url.txt)' }) From bfa797d0a4fd767ad69f8b55973ffcf4ffe17f28 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 15:21:01 +0800 Subject: [PATCH 27/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index f09a39a3eeb..70e14f7296b 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -66,9 +66,10 @@ jobs: with: github-token: ${{ github.token }} script: | + PREVIEW_URL=$(cat ./url.txt) github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: '👀 Preview the changes at: https://$(cat ./url.txt)' + body: '👀 Preview the changes at: https://${{ env.PREVIEW_URL }}' }) From d74aa15c2c7dec4f9076332b404d73de3923d5a0 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 15:23:25 +0800 Subject: [PATCH 28/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 70e14f7296b..da041170ddf 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -59,14 +59,14 @@ jobs: run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel - run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > ./url.txt + run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > url.txt - uses: actions/github-script@v5 name: Create Preview Comment with: github-token: ${{ github.token }} script: | - PREVIEW_URL=$(cat ./url.txt) + PREVIEW_URL=$(cat url.txt) github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, From 25a4a611f5c9aa1b8d914639393190b8d0749dc1 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 15:37:51 +0800 Subject: [PATCH 29/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index da041170ddf..d717b0a9636 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -61,15 +61,21 @@ jobs: - name: Deploy Project Artifacts to Vercel run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > url.txt + - name: Get Preview URL + id: get-url + run: echo ::set-output name=url::$(cat url.txt) + + - name: Test output + run: echo ${{ steps.get-url.outputs.url }} + - uses: actions/github-script@v5 name: Create Preview Comment with: github-token: ${{ github.token }} script: | - PREVIEW_URL=$(cat url.txt) github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: '👀 Preview the changes at: https://${{ env.PREVIEW_URL }}' + body: '👀 Preview the changes at: https://${{ steps.get-url.outputs.url }}' }) From 529533e21d0b13b3c64b953d8bb269ec652fbcf6 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 15:40:08 +0800 Subject: [PATCH 30/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index d717b0a9636..392e2eb79cd 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -77,5 +77,5 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: '👀 Preview the changes at: https://${{ steps.get-url.outputs.url }}' + body: '👀 Preview the changes at: ${{ steps.get-url.outputs.url }}' }) From 63da10e8e91c73f8aed7797c2502447e13a4897e Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 15:43:04 +0800 Subject: [PATCH 31/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 392e2eb79cd..ccaa1b9f138 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -4,13 +4,12 @@ env: VERCEL_PROJECT_ID: ${{ secrets.VERCEL_WEBSITE_PROJECT_ID }} on: pull_request: - # types: - # - opened - # - reopened - # - edited - # paths: - # - "packages/website/**" - # - "packages/protocol/contracts/**" + types: + - opened + - reopened + - edited + paths: + - "packages/website/**" jobs: vercel-preview: runs-on: ubuntu-latest @@ -77,5 +76,5 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: '👀 Preview the changes at: ${{ steps.get-url.outputs.url }}' + body: '☂️☂️☂️ Preview the changes at: ${{ steps.get-url.outputs.url }}' }) From e80deb3d3dd18f63f9184b19d2991ae6a21d1d10 Mon Sep 17 00:00:00 2001 From: Daniel Wang <99078276+dantaik@users.noreply.github.com> Date: Wed, 18 Jan 2023 19:58:00 +0800 Subject: [PATCH 32/38] Update .github/workflows/website_preview.yml Co-authored-by: dave | d1onys1us <13951458+d1onys1us@users.noreply.github.com> --- .github/workflows/website_preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index ccaa1b9f138..43e1a6bff03 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -67,8 +67,8 @@ jobs: - name: Test output run: echo ${{ steps.get-url.outputs.url }} - - uses: actions/github-script@v5 - name: Create Preview Comment + - name: Create Preview Comment + uses: actions/github-script@v5 with: github-token: ${{ github.token }} script: | From c9839279af4f3bdb0e00639461c85c80b2e785cd Mon Sep 17 00:00:00 2001 From: Daniel Wang <99078276+dantaik@users.noreply.github.com> Date: Wed, 18 Jan 2023 19:59:10 +0800 Subject: [PATCH 33/38] Update .github/workflows/website_preview.yml Co-authored-by: dave | d1onys1us <13951458+d1onys1us@users.noreply.github.com> --- .github/workflows/website_preview.yml | 31 ++++----------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 43e1a6bff03..28c35ac1e4a 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -19,34 +19,11 @@ jobs: with: access_token: ${{ github.token }} - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: "16.15" - - - uses: pnpm/action-setup@v2 - name: Install pnpm - id: pnpm-install - with: - version: 7 - run_install: false - - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - - uses: actions/cache@v3 - name: Setup pnpm cache - with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + - name: Checkout repository + uses: actions/checkout@v3 - - name: Install Packages - run: pnpm -F website install + - name: Set up protocol + uses: ./.github/actions/set-up-protocol - name: Install Vercel CLI run: pnpm install --global vercel@latest From 120fa16a7114b295b3957964874607e9426d8750 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 20:34:21 +0800 Subject: [PATCH 34/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 28c35ac1e4a..2ca0d1970fb 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -4,10 +4,10 @@ env: VERCEL_PROJECT_ID: ${{ secrets.VERCEL_WEBSITE_PROJECT_ID }} on: pull_request: - types: - - opened - - reopened - - edited + # types: + # - opened + # - reopened + # - edited paths: - "packages/website/**" jobs: From f033d2f8269fd6df951b10940b18848065b5f4a4 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 20:35:10 +0800 Subject: [PATCH 35/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 2ca0d1970fb..d6242c76eb4 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -4,12 +4,12 @@ env: VERCEL_PROJECT_ID: ${{ secrets.VERCEL_WEBSITE_PROJECT_ID }} on: pull_request: - # types: - # - opened - # - reopened - # - edited + types: + - opened + - reopened + - edited paths: - - "packages/website/**" + # - "packages/website/**" jobs: vercel-preview: runs-on: ubuntu-latest From 922c17f1ca194553c1ff0bc944db4a187b6dc3c4 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 20:35:23 +0800 Subject: [PATCH 36/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index d6242c76eb4..04e6d52323e 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -8,7 +8,7 @@ on: - opened - reopened - edited - paths: + # paths: # - "packages/website/**" jobs: vercel-preview: From 579c375001aca875ac60bb4087c0303034ad49c3 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 20:36:48 +0800 Subject: [PATCH 37/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 04e6d52323e..85a8f37f0ef 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -4,10 +4,10 @@ env: VERCEL_PROJECT_ID: ${{ secrets.VERCEL_WEBSITE_PROJECT_ID }} on: pull_request: - types: - - opened - - reopened - - edited + # types: + # - opened + # - reopened + # - edited # paths: # - "packages/website/**" jobs: From 00d3265c4d3012616c0f0019d76b2221b8ad15dd Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 18 Jan 2023 20:39:23 +0800 Subject: [PATCH 38/38] Update website_preview.yml --- .github/workflows/website_preview.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml index 85a8f37f0ef..28c35ac1e4a 100644 --- a/.github/workflows/website_preview.yml +++ b/.github/workflows/website_preview.yml @@ -4,12 +4,12 @@ env: VERCEL_PROJECT_ID: ${{ secrets.VERCEL_WEBSITE_PROJECT_ID }} on: pull_request: - # types: - # - opened - # - reopened - # - edited - # paths: - # - "packages/website/**" + types: + - opened + - reopened + - edited + paths: + - "packages/website/**" jobs: vercel-preview: runs-on: ubuntu-latest