Skip to content

ci: packaging smoke test + tag-driven npm release - #30

Merged
RelayStack merged 1 commit into
mainfrom
ci/workflows
Oct 16, 2026
Merged

RelayStack merged 1 commit into
mainfrom
ci/workflows

Conversation

@RelayStack

Copy link
Copy Markdown
Owner

Both files were held back from #29 because the push token lacked the workflow scope. That's now resolved.

test.yml — adds a package job alongside the existing Node 18/20/22 matrix. It runs npm pack, installs the tarball into an empty project, and invokes astro-seo-toolkit, astro-seo-check and astro-seo-sitemap the way a user would, then asserts all four generated files are non-empty.

This is the job that would have caught the original bug. Unit tests import the source tree, where the CLI guard compared equal; the failure only appears once the package is installed and npm runs the bin through a node_modules/.bin symlink.

release.yml — publishes on v* tags. It checks the tag against package.json, runs the suite, and skips without failing when the version is already on the registry.

Note the NPM_TOKEN secret is not set yet, so the first tag push that needs to publish will fail at the publish step. Either add the secret or configure a trusted publisher on npmjs.com and drop the env block — the comment in the file explains both.

test.yml gains a `package` job that packs the tarball, installs it into a
throwaway project and invokes the bins the way a user does. Unit tests
import the source tree; this is the only job that would have caught a bin
that silently does nothing once installed.

release.yml publishes on v* tags: it verifies the tag matches
package.json, runs the suite, and skips cleanly if the version is already
on the registry so re-runs and back-filled tags can't fail.
Copilot AI balanced review requested due to automatic review settings October 16, 2026 13:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@RelayStack
RelayStack merged commit 4c3c300 into main Oct 16, 2026
8 checks passed
@RelayStack
RelayStack deleted the ci/workflows branch October 16, 2026 13:07
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