Skip to content

fix(ci): remove make-package-public step#27

Merged
KailasMahavarkar merged 6 commits intomainfrom
fix/ci-remove-make-public
Apr 10, 2026
Merged

fix(ci): remove make-package-public step#27
KailasMahavarkar merged 6 commits intomainfrom
fix/ci-remove-make-public

Conversation

@KailasMahavarkar
Copy link
Copy Markdown
Collaborator

Problem

The `Make package public on ghcr.io` step was calling:
```
PATCH /orgs/orkait/packages/container/hyperstack { visibility: public }
```

This returns 404 because `GITHUB_TOKEN` with `packages: write` can push images but cannot change package visibility — that requires `admin:packages` scope which Actions tokens don't receive.

Fix

Remove the step. Set the package public once manually in GitHub UI:
Packages → hyperstack → Package settings → Change visibility → Public

It stays public permanently after that.

🤖 Generated with Claude Code

KailasMahavarkar and others added 6 commits April 10, 2026 17:02
Adds a release job to the CI workflow. On every push to main, after
verify passes, it reads the version from package.json and checks if
the tag already exists. If not, gh release create runs with
--generate-notes, which triggers the existing Docker build job and
produces versioned tags (:v1.1.0, :latest).

No manual release steps needed — bump the version in a PR, merge, done.

Also bumps package.json to 1.1.0 to exercise the new path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Restore ghcr.io as registry (Docker Hub changes reverted)
- Add 'Make package public' step that patches /orgs/orkait/packages/container/hyperstack
  with visibility=public after every image push

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Previously ran on every push to main. Now that the release job
auto-creates a GitHub release on version bump, Docker should only
build when a release is published — not on every commit.

Flow: push to main → verify → release (if version bumped)
      release published → verify → build-and-push-image

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
GITHUB_TOKEN with packages:write can push images but cannot change
package visibility — that requires admin:packages scope which Actions
tokens don't receive. Removing the step; set the package public once
manually in GitHub UI (Packages → Package settings → Change visibility).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@KailasMahavarkar KailasMahavarkar merged commit de23d84 into main Apr 10, 2026
@KailasMahavarkar KailasMahavarkar deleted the fix/ci-remove-make-public branch April 10, 2026 11:45
KailasMahavarkar added a commit that referenced this pull request Apr 14, 2026
* chore: auto-release on package.json version bump + bump to v1.1.0

Adds a release job to the CI workflow. On every push to main, after
verify passes, it reads the version from package.json and checks if
the tag already exists. If not, gh release create runs with
--generate-notes, which triggers the existing Docker build job and
produces versioned tags (:v1.1.0, :latest).

No manual release steps needed — bump the version in a PR, merge, done.

Also bumps package.json to 1.1.0 to exercise the new path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(docker): bun.lockb → bun.lock (bun 1.3+ uses text lockfile)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: revert to ghcr.io and make package public after each push

- Restore ghcr.io as registry (Docker Hub changes reverted)
- Add 'Make package public' step that patches /orgs/orkait/packages/container/hyperstack
  with visibility=public after every image push

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(ci): build-and-push-image only on release events

Previously ran on every push to main. Now that the release job
auto-creates a GitHub release on version bump, Docker should only
build when a release is published — not on every commit.

Flow: push to main → verify → release (if version bumped)
      release published → verify → build-and-push-image

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(ci): remove make-package-public step

GITHUB_TOKEN with packages:write can push images but cannot change
package visibility — that requires admin:packages scope which Actions
tokens don't receive. Removing the step; set the package public once
manually in GitHub UI (Packages → Package settings → Change visibility).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant