ci: fix publish workflow and convert to merge-to-main#31
Merged
Conversation
…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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the broken publish workflow and converts it from tag-based to auto-publish on merge to main.
Bugs fixed
packages/astchunkbut the actual package is atpackages/code-chunk. This caused every publish attempt to fail.Changes
.github/workflows/release.yml:packages/astchunktopackages/code-chunkpush: tags: ['v*']topush: branches: [main], paths: ['packages/code-chunk/package.json']actions/setup-node@v4withregistry-urlfor proper npm authbun publishtonpm publishwithNODE_AUTH_TOKENNPM_CONFIG_PROVENANCE: truefor npm provenanceTesting
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
(aside)to your comment to have me ignore it.