Skip to content

Commit

Permalink
chore: publish packages to crates.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexcited committed Dec 31, 2024
1 parent c9a1c22 commit db3fbf0
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- main

jobs:
publish:
publish-js:
runs-on: 'ubuntu-latest'

permissions:
Expand Down Expand Up @@ -38,3 +38,25 @@ jobs:
run: |
pnpm install && pnpm build
npm publish --provenance --access public
publish-rust:
runs-on: 'ubuntu-latest'

permissions:
contents: read

steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-gnu

- uses: swatinem/rust-cache@v2
with:
shared-key: "cache"

- env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_TOKEN }}
run: |
cargo install cargo-release
cargo release patch --execute --no-tag
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ members = ["wasm", "fetcher", "fetcher-macros"]

[workspace.package]
version = "0.1.0"
description = "Utilities for the LiterateInk crates."
homepage = "https://docs.literate.ink/utilities"
license = "MIT"
repository = "https://github.com/LiterateInk/Utilities"

[workspace.metadata.release]
pre-release-commit-message = "chore: bump rust versions"
4 changes: 4 additions & 0 deletions fetcher-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[package]
name = "literateink-fetcher-macros"
version.workspace = true
description.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
edition = "2021"

[dependencies]
Expand Down
4 changes: 4 additions & 0 deletions fetcher/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[package]
name = "literateink-fetcher"
version.workspace = true
description.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
edition = "2021"

[dependencies]
Expand Down
4 changes: 4 additions & 0 deletions wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[package]
name = "literateink-wasm"
version.workspace = true
description.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
edition = "2021"

[dependencies]
Expand Down

0 comments on commit db3fbf0

Please sign in to comment.