Skip to content

Another fix#56

Merged
Looted merged 4 commits intomasterfrom
develop
Mar 12, 2026
Merged

Another fix#56
Looted merged 4 commits intomasterfrom
develop

Conversation

@Looted
Copy link
Copy Markdown
Owner

@Looted Looted commented Mar 11, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 11, 2026 21:26
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the npm publish GitHub Actions workflow to stop committing/pushing version bumps and instead run Changesets versioning locally in downstream jobs.

Changes:

  • Removed contents: write permissions and the git commit/push step from the version-packages job.
  • Added “Version packages locally from changesets” steps to build-and-check and release-gate.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 69 to 72
- name: Install dependencies
run: bun install
- name: Version packages
run: bun run version-packages
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version-packages job now runs bun run version-packages but no longer commits/pushes the resulting version bumps (and doesn’t upload them as an artifact). Because each job checks out a fresh workspace, these version changes won’t be visible to later jobs, so this job is effectively wasted work and can’t ensure consistent versions across the workflow. Either reintroduce a mechanism to persist the versioned files (commit+push with appropriate permissions, or upload/download an artifact), or remove this job and run versioning only in the jobs that need it (including publish).

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't commit to master, it was rejected last time. Co we do artifacts then?

Comment thread .github/workflows/publish.yml Outdated
Comment on lines +103 to +105
- name: Version packages locally from changesets
if: ${{ needs.check-changesets.outputs.has_changesets == 'true' }}
run: bun run version-packages
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build-and-check versions packages locally and then computes to_publish based on the bumped versions, but the publish job does not run version-packages (and the earlier version-packages job no longer persists changes). This can cause publish to attempt to publish different (likely already-published) versions than the ones build-and-check checked, leading to failed publishes or inconsistent releases. Ensure the exact same versioned state is used for both detection and publishing (e.g., run version-packages in publish, or share a single versioned workspace via commit/artifacts).

Suggested change
- name: Version packages locally from changesets
if: ${{ needs.check-changesets.outputs.has_changesets == 'true' }}
run: bun run version-packages
# NOTE: Do not run `version-packages` locally here.
# Versioning is handled by the dedicated `version-packages` job so that
# all downstream jobs (including publish) see a consistent versioned state.

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/publish.yml Outdated
Comment on lines +175 to +177
- name: Version packages locally from changesets
if: ${{ needs.check-changesets.outputs.has_changesets == 'true' }}
run: bun run version-packages
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

release-gate versions packages locally before packing/verifying tarballs, but that versioned state is not shared with the publish job. This means the tarballs you verify here may not match what ultimately gets published, undermining the purpose of the gate. Align the workflow so release-gate and publish operate on the same versioned sources (single versioning step with persisted output, or re-run versioning in publish deterministically).

Suggested change
- name: Version packages locally from changesets
if: ${{ needs.check-changesets.outputs.has_changesets == 'true' }}
run: bun run version-packages

Copilot uses AI. Check for mistakes.
@Looted
Copy link
Copy Markdown
Owner Author

Looted commented Mar 11, 2026

@copilot please fix the workflow. Do not rely on comitting, since master is currently protected. Pass artifacts if that helps.

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 11, 2026

@Looted I've opened a new pull request, #57, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits March 11, 2026 21:37
Co-authored-by: Looted <6255880+Looted@users.noreply.github.com>
[WIP] Fix npm publish GitHub Actions workflow
@Looted Looted merged commit 632456b into master Mar 12, 2026
5 checks passed
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