Skip to content

ci: always publish all libs on main merges#242

Merged
tnschneider merged 4 commits into
mainfrom
ci/always-publish-libs
Jun 24, 2026
Merged

ci: always publish all libs on main merges#242
tnschneider merged 4 commits into
mainfrom
ci/always-publish-libs

Conversation

@mcarey1590

Copy link
Copy Markdown
Contributor

Summary

The previous release workflow fix landed, but no library was published because the change was only in .github/ files, which nx affected does not associate with the web-socket-client library.

This PR changes the release script to publish all libraries on every merge to main instead of only affected ones. Since this workspace has a single library (web-socket-client), this is the same effective behavior and avoids silent no-op releases.

Also makes the post-publish git commit step resilient when there are no changes to commit.

Test plan

  • Merge and verify the next main release publishes web-socket-client to npm.

Generated with Devin

mcarey1590 and others added 3 commits June 24, 2026 14:20
- Replace the long-lived FIREBEND_NPM_KEY token with GitHub Actions
  OIDC trusted publishing:
  - Add `permissions: id-token: write` to the release job.
  - Remove the `.npmrc` auth-token step and `npm whoami`.
  - Use `actions/setup-node@v4` with `registry-url` configured.
- Add `--provenance` to `npm publish` so packages publish with
  verifiable provenance attestation.
- Update `actions/checkout@v2` to `actions/checkout@v4` and pin
  `ad-m/github-push-action` to `v0.8.0` instead of `master`.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- Update actions/checkout from v2 to v4.
- Add actions/setup-node@v4 with node-version 20 to match the
  release workflow and ensure consistent Node runtime.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Switch the release script from nx affected to all libraries so that
merges to main always publish the web-socket-client library, even when
the triggering change was only a workflow or CI file update.

Also make the post-publish commit step resilient when there are no
changes to commit (e.g., if the build produced no diff).

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@mcarey1590 mcarey1590 self-assigned this Jun 24, 2026
@tnschneider tnschneider merged commit dbc1fcf into main Jun 24, 2026
1 check passed
@tnschneider tnschneider deleted the ci/always-publish-libs branch June 24, 2026 19: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.

2 participants