Repository navigation
ci: publish sim-skills to npm on merge to main - #15
Open
waleedlatif1 wants to merge 1 commit into
Open
waleedlatif1 wants to merge 1 commit into
waleedlatif1 wants to merge 1 commit into
Conversation
Adds a publish workflow that auto-bumps the patch version, syncs both plugin manifests, verifies the packed tarball, publishes via npm trusted publishing, and tags a GitHub Release. CI now pins action SHAs and fails on plugin manifest version drift.
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
Publishes
sim-skillsto npm automatically on every qualifying merge tomain, mirroringsimstudioai/sim'spublish-sim-setup.yml..github/workflows/publish.yml: on push tomain(package, lockfile,src/,skills/,scripts/, plugin manifests, tsconfig, or the workflow itself).build: install, auto-bump the version (scripts/resolve-release-version.ts), sync both plugin manifests to it, validate skills, test, type-check, build,bun pm pack --ignore-scripts, verify tarball contents and that all three packed manifests carry the release version, refuse an already-published version, and upload the tarball.publish:id-token: writeonly, Node 24,npm publish <tgz> --access public --tag latestthrough trusted publishing (OIDC, no token). It runs no repository code.release:contents: write, creates tagv<version>and a GitHub Release (--generate-notes --latest). It skips if the release already exists, so a re-run is safe.package.jsonversion, so the first automated release is0.1.1. Otherwise usepackage.jsonwhen it is ahead of npm, or the highest published stable version plus one patch. Prereleases are ignored. A registry error other than 404 fails the run.ci.yml: actions pinned to SHAs,persist-credentials: false, and a newcheck:plugin-versionstep that fails when eitherplugin.jsonversion differs frompackage.json. The tarball check moved toscripts/verify-package.shso CI and publish share it.All action SHAs match the sim workflow.
oven-sh/setup-bunis pinned to v2.2.0 (0c5077e).One-time setup before the first run
sim-skillsto npm once by hand to claim the name. Trusted publishing can only be set up on a package that already exists. If that publishes0.1.1, the first automated run will publish0.1.2.simstudioai, repositoryskills, workflowpublish.yml.Until steps 1 and 2 are done, a merge to
mainwill fail at thepublishstep. Nothing is published, and no tag or release is created.Testing
bun install --frozen-lockfile,check:skills,check:plugin-version,test(16 passing),type-check,build,lint:check, pack +verify-package.sh,actionlint: all pass locally.bun run release:versionagainst the live registry resolves0.1.1 -> 0.1.1(sim-skills is a 404 today).