feat: setup npm publish workflow #14
Merged
+164
−249
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.
This pull request introduces a new GitHub Actions workflow for publishing npm SDKs, updates the Bun worker SDK to use published dependencies, and bumps the TypeScript SDK to a new alpha version. It also updates the
package-lock.jsonfor the TypeScript SDK, marking many dependencies as peer dependencies for better compatibility.Release automation:
.github/workflows/release-npm-sdks.yamlto automate publishing of the TypeScript and Bun worker SDKs to npm on GitHub release events. This workflow supports both npm and Bun, selects the proper npm dist-tag, and ensures only matching tags trigger the publish step.SDK dependency and version updates:
@absurd-sqlite/bun-workerto version0.2.0-alpha.1, changed its dependency on@absurd-sqlite/sdkfrom a local file reference to the published~0.2.0-alpha.3version, and fixed the description casing. [1] [2]@absurd-sqlite/sdk(TypeScript SDK) version to0.2.0-alpha.3in bothpackage.jsonandpackage-lock.json.Dependency management improvements:
sdks/typescript/package-lock.jsonto mark many dependencies as"peer": true, improving compatibility and reducing duplication in consumer projects. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25]These changes streamline the release process, improve dependency management, and prepare both SDKs for wider consumption via npm.