Skip to content

Commit

Permalink
Bump to 0.2.16
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed Sep 20, 2023
1 parent b2df881 commit a377234
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 10 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,14 @@ jobs:
- uses: actions/checkout@v2
- name: Setup
uses: ./.github/workflows/setup
- name: Install cargo-workspaces
- name: Install cargo-release
uses: baptiste0928/cargo-install@v2
with:
crate: cargo-workspaces
- name: Cargo release
# --allow-dirty needed for js/dist files
run: cargo workspace publish --allow-dirty --token ${{ secrets.CARGO_TOKEN }}
crate: cargo-release
- name: Cargo login
run: cargo login ${{ secrets.CARGO_TOKEN }}
- name: Cargo release
run: cargo release --workspace --execute --no-confirm
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cp crates/mdbook-quiz-schema/bindings/* js/packages/quiz/src/bindings

# Watch
[tasks.watch]
script = "cargo watch -x 'install --path . --debug --offline --features rust-editor --features source-map' -w src -w js/packages/quiz-embed/dist --ignore-nothing"
script = "cargo watch -x 'install --path crates/mdbook-quiz --debug --offline --features rust-editor --features source-map' -w src -w js/packages/quiz-embed/dist --ignore-nothing"

[tasks.watch.run_task]
name = ["watch-cargo"]
Expand Down
1 change: 1 addition & 0 deletions crates/mdbook-quiz-schema/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "mdbook-quiz-schema"
version = "0.1.0"
authors = ["Will Crichton <[email protected]>"]
description = "Schema for quizzes used in mdbook-quiz"
license = "MIT OR Apache-2.0"
edition = "2021"
repository = "https://github.com/cognitive-engineering-lab/mdbook-quiz"
Expand Down
1 change: 1 addition & 0 deletions crates/mdbook-quiz-validate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "mdbook-quiz-validate"
version = "0.1.0"
authors = ["Will Crichton <[email protected]>"]
description = "Input validation for quizzes used in mdbook-quiz"
license = "MIT OR Apache-2.0"
edition = "2021"
repository = "https://github.com/cognitive-engineering-lab/mdbook-quiz"
Expand Down
2 changes: 1 addition & 1 deletion crates/mdbook-quiz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "mdbook-quiz"
authors = ["Will Crichton <[email protected]>"]
description = "Interactive quizzes for your mdBook"
license = "MIT OR Apache-2.0"
version = "0.2.15"
version = "0.2.16"
edition = "2021"
include = ["/src", "/js"]
repository = "https://github.com/cognitive-engineering-lab/mdbook-quiz"
Expand Down
3 changes: 2 additions & 1 deletion crates/mdbook-quiz/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ impl QuizPreprocessor {
content_toml = fs::read_to_string(&quiz_path_abs)?;
}

let content = content_toml.parse::<toml::Value>()?;
#[allow(unused_mut)]
let mut content = content_toml.parse::<toml::Value>()?;

#[cfg(feature = "aquascope")]
self.add_aquascope_blocks(&mut content)?;
Expand Down
2 changes: 1 addition & 1 deletion js/packages/quiz/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wcrichto/quiz",
"version": "0.2.15",
"version": "0.2.16",
"files": [
"dist"
],
Expand Down

0 comments on commit a377234

Please sign in to comment.