diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5da5d67..c101296 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -29,14 +29,18 @@ jobs: permissions: id-token: write contents: write - steps: + env: + # setup-node writes an .npmrc referencing ${NODE_AUTH_TOKEN} (because of registry-url below). + # Since setup-node v7 no longer exports a placeholder, every npm command fails if it's unset. + NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} + steps: - name: Checkout Repo - uses: actions/checkout@v3 - - name: Use Node 20 - uses: actions/setup-node@v3 + uses: actions/checkout@v7 + - name: Use Node 24 + uses: actions/setup-node@v7 with: cache: npm - node-version: '20' + node-version: '24' registry-url: "https://npm.pkg.github.com" - name: Set package.json version run: | @@ -82,7 +86,7 @@ jobs: echo "filename=${filename}" >> $GITHUB_OUTPUT - name: Get release notes if: inputs.newVersion == 'true' - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: change-log - name: Create Release diff --git a/.github/workflows/get-version.yaml b/.github/workflows/get-version.yaml index c036588..1d23e9f 100644 --- a/.github/workflows/get-version.yaml +++ b/.github/workflows/get-version.yaml @@ -31,11 +31,11 @@ jobs: channel: ${{ steps.get_version.outputs.channel }} newVersion: ${{ steps.get_version.outputs.newVersion }} steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 # v4 + - uses: actions/checkout@v7 + - uses: actions/setup-node@v7 with: cache: npm - node-version: lts/* + node-version: '24' registry-url: https://npm.pkg.github.com scope: "@pepperdash-products" - name: Get branch name @@ -85,7 +85,7 @@ jobs: echo "hash: ${{ steps.get_version.outputs.hash }}" >> $GITHUB_STEP_SUMMARY - name: Upload release notes if: steps.get_version.outputs.newVersion == 'true' - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: change-log path: CHANGELOG.md