From fe1eaa9dd60de37ab84229bcd4117f236aa5af8c Mon Sep 17 00:00:00 2001 From: Billy Tat Date: Fri, 9 Jun 2023 13:40:33 -0700 Subject: [PATCH 1/2] Update Node version in GitHub action --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b808acc..a0d5d65 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,7 +14,7 @@ jobs: - name: Setup Docusaurus uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18 cache: yarn - name: Build website run: | From f9af3eaef6828c2da64ed1f3c90eec7e0fcfa1bf Mon Sep 17 00:00:00 2001 From: Billy Tat Date: Fri, 9 Jun 2023 13:44:05 -0700 Subject: [PATCH 2/2] Add GitHub action to test deployment on PRs --- .github/workflows/test-deploy.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/test-deploy.yml diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml new file mode 100644 index 0000000..5b62b38 --- /dev/null +++ b/.github/workflows/test-deploy.yml @@ -0,0 +1,20 @@ +name: Test deployment + +on: + pull_request: + branches: main + +jobs: + test-deploy: + name: Test deployment + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: yarn + - name: Test build + run: | + yarn install --frozen-lockfile + yarn build