diff --git a/.github/workflows/cd-manual.yml b/.github/workflows/cd-manual.yml index 193b8c6..5e58930 100644 --- a/.github/workflows/cd-manual.yml +++ b/.github/workflows/cd-manual.yml @@ -1,29 +1,29 @@ name: CloudFlare Pages Deploy -on: +on: workflow_dispatch: jobs: deploy: - runs-on: ubuntu-latest - permissions: - contents: read - deployments: write - steps: - - uses: actions/checkout@v3 - - run: corepack enable - - uses: actions/setup-node@v4 - with: - cache: yarn - node-version: '20' - - name: Bootstrap - run: yarn --immutable - - name: Build - run: yarn build - - name: Publish to Cloudflare Pages - uses: cloudflare/pages-action@1 - with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - projectName: simpleserialize - directory: ./dist - gitHubToken: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + runs-on: ubuntu-latest + permissions: + contents: read + deployments: write + steps: + - uses: actions/checkout@v5 + - run: corepack enable + - uses: actions/setup-node@v5 + with: + cache: yarn + node-version: "22" + - name: Bootstrap + run: yarn --immutable + - name: Build + run: yarn build + - name: Publish to Cloudflare Pages + uses: cloudflare/pages-action@1 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + projectName: simpleserialize + directory: ./dist + gitHubToken: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 3842780..6fd3ba7 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -6,7 +6,7 @@ jobs: Checks: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v5 - run: yarn install - run: yarn build - run: yarn check-types diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1727ab8..72ee06a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,22 +3,22 @@ name: Deploy to GitHub Pages on: push: branches: - master + - master jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: Setup Node - uses: actions/setup-node@v1 - with: - node-version: '12.x' - - run: yarn - - run: yarn build - - name: Deploy - uses: peaceiris/actions-gh-pages@v2 - env: - PERSONAL_TOKEN: ${{ secrets.GH_PAGES_TOKEN }} - PUBLISH_BRANCH: gh-pages - PUBLISH_DIR: ./dist + - uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: "22" + - run: yarn + - run: yarn build + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + env: + PERSONAL_TOKEN: ${{ secrets.GH_PAGES_TOKEN }} + PUBLISH_BRANCH: gh-pages + PUBLISH_DIR: ./dist