ci: add CI and release workflows (auto-publish to crates.io + npm) - #36
Merged
Conversation
reatlat
force-pushed
the
chore/ci-publish
branch
from
August 11, 2026 01:15
a42b581 to
e83356b
Compare
reatlat
force-pushed
the
chore/ci-publish
branch
from
August 11, 2026 01:17
e83356b to
1b4acc4
Compare
There was a problem hiding this comment.
Pull request overview
Adds GitHub Actions automation for this Tauri plugin so CI runs on pushes/PRs and releases can publish artifacts to crates.io and npm when a GitHub Release is published.
Changes:
- Introduces a CI workflow that installs JS deps, builds the JS bundle, and runs
cargo check. - Introduces a release workflow with separate jobs to publish to crates.io and to npm on
release.published.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/ci.yml | Adds a CI job for JS build + Rust cargo check on push/PR. |
| .github/workflows/release.yml | Adds release-triggered publishing jobs for crates.io and npm. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
reatlat
force-pushed
the
chore/ci-publish
branch
3 times, most recently
from
August 11, 2026 01:33
7d166c2 to
fb849cc
Compare
- ci.yml: cargo check + npm build on push/PR - release.yml: auto-publish to crates.io and npm on GitHub release published Requires CARGO_REGISTRY_TOKEN and NPM_TOKEN secrets in repo settings
reatlat
force-pushed
the
chore/ci-publish
branch
from
August 11, 2026 01:35
fb849cc to
c6bab68
Compare
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
Adds CI and release automation so the plugin auto-publishes to crates.io and npm when a GitHub release is published.
What's added
.github/workflows/ci.yml
cargo checkandnpm run buildon every push to main and on PRs.github/workflows/release.yml
release: published(when you publish a GitHub release)CARGO_REGISTRY_TOKENsecretNPM_TOKENsecretRequired secrets
These need to be added in repo Settings > Secrets and variables > Actions:
CARGO_REGISTRY_TOKENNPM_TOKEN@cristipufu — since you own both registry packages, you can generate these tokens and add them as repo secrets. No ownership transfer needed. Or if you'd prefer to add @reatlat as owner on both registries:
cargo owner -a github:reatlat tauri-plugin-aptabasenpm owner add reatlat @aptabase/tauriHow it works after this
1.2.0)