Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latest option causes job to fail with no errors #1135

Closed
2 of 5 tasks
abidbmt opened this issue Sep 17, 2024 · 3 comments
Closed
2 of 5 tasks

latest option causes job to fail with no errors #1135

abidbmt opened this issue Sep 17, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@abidbmt
Copy link

abidbmt commented Sep 17, 2024

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:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • 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 }}
@ryanwitt
Copy link

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

@priyagupta108
Copy link
Contributor

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
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants