diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 25ffb37..a2961db 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,12 +6,13 @@ on: types: [published] permissions: - id-token: write # Required for OIDC + id-token: write # Required for OIDC contents: read jobs: release: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 + steps: - uses: actions/checkout@v4 @@ -21,6 +22,11 @@ jobs: node-version: 20.x registry-url: "https://registry.npmjs.org" + - name: Update npm + # We need to make sure we're using npm v11.5+ to use Trusted Publishers + # Reference: https://docs.npmjs.com/trusted-publishers + run: npm install -g npm@11 + - name: "Install dependencies" run: npm ci diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bf86df9..f503c5b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ permissions: jobs: lint: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - run: npx prettier@2.8.8 --check . @@ -37,7 +37,7 @@ jobs: ] node-version: ["18.x", "20.x"] - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 @@ -64,7 +64,7 @@ jobs: clean-up: if: ${{ always() }} needs: test - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4