setup-node icon indicating copy to clipboard operation
setup-node copied to clipboard

`latest` option causes job to fail with no errors

Open abidbmt opened this issue 1 year ago • 2 comments

Description: Using latest in the node-version option makes the action return code 1 without any errors, not even with debug prints on

Action version: 4.0.3

Platform:

  • [X] Ubuntu
  • [ ] macOS
  • [ ] Windows

Runner type:

  • [X] Hosted
  • [ ] Self-hosted

Tools version: N/A

Repro steps:
Use latest in node-version option

Expected behavior: Would run normally just as if you used >=22 instead of latest

Actual behavior: Job fails and returns code 1 with no errors image

Full workflow:

 name: Publish package to GitHub Packages
on:
  push:
    branches:
      - main
  release:
    types: [published]
jobs:
  build:
    if: ${{ ! contains(github.event.head_commit.message, '[skip ci]')}}
    runs-on: ubuntu-latest
    permissions:
      contents: read
      packages: write
    steps:
      - uses: actions/[email protected]
      # Setup .npmrc file to publish to GitHub Packages
      - uses: actions/[email protected]
        with:
          node-version: 'latest'
          registry-url: 'https://npm.pkg.github.com'

      - run: npm ci
      - run: npm publish
        env:
          NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

abidbmt avatar Sep 17 '24 18:09 abidbmt

Note that nodejs.org is having an outage, though status.nodejs.org had not been updated as of just before this comment.

ryanwitt avatar Sep 17 '24 18:09 ryanwitt

Hello @abidbmt 👋, Thank you for reporting this issue. The issue was caused by a temporary outage on the Node.js website affecting downloads. According to the Node.js status page, the issue has now been resolved. Please try rerunning your workflows. If the problem persists, feel free to reach out to us.

priyagupta108 avatar Sep 18 '24 05:09 priyagupta108

Hello @abidbmt, The issue was caused by a temporary outage on the Node.js website, which has now been resolved. I will close this issue for now. If you continue to experience any problems, please feel free to reopen this issue or create a new one. Thank you!

priyagupta108 avatar Sep 27 '24 04:09 priyagupta108