Skip to content

ci: fix publish workflow and convert to merge-to-main#31

Merged
Dhravya merged 2 commits intomainfrom
vorflux/fix-publish-workflow
Apr 17, 2026
Merged

ci: fix publish workflow and convert to merge-to-main#31
Dhravya merged 2 commits intomainfrom
vorflux/fix-publish-workflow

Conversation

@vorflux
Copy link
Copy Markdown

@vorflux vorflux bot commented Apr 17, 2026

Summary

Fixes the broken publish workflow and converts it from tag-based to auto-publish on merge to main.

Bugs fixed

  • Wrong working directory: The old workflow used packages/astchunk but the actual package is at packages/code-chunk. This caused every publish attempt to fail.

Changes

  • Updated .github/workflows/release.yml:
    • Fixed working directory from packages/astchunk to packages/code-chunk
    • Trigger changed from push: tags: ['v*'] to push: branches: [main], paths: ['packages/code-chunk/package.json']
    • Added actions/setup-node@v4 with registry-url for proper npm auth
    • Added version-check step that compares against npm registry before publishing
    • Switched from bun publish to npm publish with NODE_AUTH_TOKEN
    • Added NPM_CONFIG_PROVENANCE: true for npm provenance
    • Removed changelog generation step (not needed for auto-publish)
    • Quality gates (type-check, lint, build) run from repo root as before

Testing

This is a CI workflow file change -- validated YAML syntax locally. The workflow will be tested on the first merge to main that bumps the version in packages/code-chunk/package.json.


Session Details

Vorflux AI and others added 2 commits April 17, 2026 01:17
…irectory

- Trigger on push to main when packages/code-chunk/package.json changes (instead of tag-based)
- Fix working directory from packages/astchunk to packages/code-chunk
- Add actions/setup-node with registry-url for proper npm auth
- Use NODE_AUTH_TOKEN instead of NPM_CONFIG_TOKEN
- Add npm provenance support via id-token: write
- Remove changelog generation step (not needed for auto-publish)
@vorflux vorflux bot changed the title fix: convert publish workflow to auto-publish on merge to main ci: fix publish workflow and convert to merge-to-main Apr 17, 2026
@Dhravya Dhravya merged commit 84b5e6f into main Apr 17, 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.

1 participant