From ae5dbf6fa34dfa399399cbd7b99da7eb4c293f3a Mon Sep 17 00:00:00 2001 From: Sander Hahn Date: Sun, 12 Jan 2025 10:45:05 +0100 Subject: [PATCH] chore: update GitHub Actions workflow to use actions/checkout@v4 and make publish job the last step --- .github/workflows/actions.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/actions.yaml b/.github/workflows/actions.yaml index e109532..69047a5 100644 --- a/.github/workflows/actions.yaml +++ b/.github/workflows/actions.yaml @@ -6,7 +6,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: denoland/setup-deno@v2 with: deno-version: v2.x @@ -37,12 +37,14 @@ jobs: publish: runs-on: ubuntu-latest + # Ensure publish waits for build to succeed + needs: build + permissions: contents: read id-token: write steps: - uses: actions/checkout@v4 - - name: Publish package run: npx jsr publish