Skip to content

Fix release GitHub Action#1127

Merged
rgrunber merged 1 commit intoredhat-developer:mainfrom
datho7561:fix-release
Sep 24, 2025
Merged

Fix release GitHub Action#1127
rgrunber merged 1 commit intoredhat-developer:mainfrom
datho7561:fix-release

Conversation

@datho7561
Copy link
Contributor

@datho7561 datho7561 commented Sep 23, 2025

What does this PR do?

  • setup-node@v5 creates a .npmrc if you provide a registry, so there should be no need to do that separately
  • after setup-node@v5 is run, npm publish expects the token to be accessible from the environment variable NODE_AUTH_TOKEN
  • also fix coveralls so that it only publishes results on ubuntu. If results are published from multiple platforms, then the 2nd and 3rd publish attempts will fail.

See https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#publish-to-npmjs-and-gpr-with-npm

What issues does this PR fix or reference?

This should fix the release GitHub Action (as well as the prereleases)

Is it tested? How?

No, I don't think there's a good way to test it without merging first.

@coveralls
Copy link

coveralls commented Sep 23, 2025

Coverage Status

coverage: 83.956%. remained the same
when pulling fd9490e on datho7561:fix-release
into 3821411 on redhat-developer:main.

@datho7561 datho7561 force-pushed the fix-release branch 2 times, most recently from fd9490e to 1160f23 Compare September 23, 2025 15:13
- setup-node@v5 creates a .npmrc if you provide a registry,
  so there should be no need to do that separately
- after setup-node@v5 is run, `npm publish` expects the token to be
  accessible from the environment variable `NODE_AUTH_TOKEN`
- also fix coveralls, because that's getting annoying
  (root cause is that it tried to publish the results for each platform
  instead of just once)

See https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#publish-to-npmjs-and-gpr-with-npm

Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561
Copy link
Contributor Author

Supposedly the coveralls failures are related to an ongoing outage, however I believe the changes I made will mitigate failures anyways.

@rgrunber rgrunber merged commit f0b6ad0 into redhat-developer:main Sep 24, 2025
3 of 4 checks passed
@datho7561 datho7561 deleted the fix-release branch September 24, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants