From 6437ee0759eaa17cdecd3d950a946b62d5e51d33 Mon Sep 17 00:00:00 2001 From: Max Holman Date: Thu, 23 May 2024 19:49:25 +0800 Subject: [PATCH] chore: bump gh actions --- .github/workflows/deploy.yml | 16 +++++++++------- .github/workflows/pr.yaml | 13 ++++++------- .github/workflows/publish.yml | 9 +++------ 3 files changed, 18 insertions(+), 20 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d285e71..5e3d648 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,16 +9,18 @@ jobs: publish-npm: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: pnpm/action-setup@v2 - with: - version: 7 - - uses: actions/setup-node@v3 + + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v3 + + - uses: actions/setup-node@v4 with: - node-version: 16 - registry-url: https://registry.npmjs.org/ + node-version: 20 cache: 'pnpm' + - run: make + - run: pnpm publish -r --access=public --no-git-checks env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 64d76a5..60e847f 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -8,13 +8,12 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: pnpm/action-setup@v2 - with: - version: 8 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v3 + + - uses: actions/setup-node@v4 with: - node-version: 16 - registry-url: https://registry.npmjs.org/ cache: 'pnpm' + - run: make test diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8e33162..358b09f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,17 +13,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: PNPM - uses: pnpm/action-setup@v2 - with: - version: 8 + uses: pnpm/action-setup@v3 - name: Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 16 registry-url: https://registry.npmjs.org/ cache: 'pnpm'