mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-01-06 13:39:17 +01:00
v0.3.10 and added npm publishing to ci
This commit is contained in:
parent
bf06c7789d
commit
416064ac53
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -11,9 +11,7 @@ env:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: Swatinem/rust-cache@v1.0.1
|
||||
@ -21,3 +19,10 @@ jobs:
|
||||
run: cargo build --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
|
||||
build_wasm:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: Swatinem/rust-cache@v1.0.1
|
||||
- run: cargo build --target wasm32-unknown-unknown --no-default-features
|
30
.github/workflows/release.yml
vendored
30
.github/workflows/release.yml
vendored
@ -21,6 +21,36 @@ jobs:
|
||||
run: cargo publish --manifest-path kalk/Cargo.toml --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --verbose
|
||||
- name: Publish CLI
|
||||
run: sleep 20 && cargo publish --manifest-path kalk_cli/Cargo.toml --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --verbose
|
||||
|
||||
publish_npm:
|
||||
name: publish to npm
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: Swatinem/rust-cache@v1.0.1
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 14
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- name: Install wasm-pack
|
||||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||
- name: Build
|
||||
run: |
|
||||
yarn install
|
||||
cd kalk
|
||||
wasm-pack build --scope paddim8 -- --no-default-features
|
||||
- name: Publish
|
||||
run: |
|
||||
sudo apt install expect
|
||||
/usr/bin/expect <<EOD
|
||||
spawn wasm-pack login
|
||||
expect {
|
||||
"Username:" {send "paddim8\r"; exp_continue}
|
||||
"Password:" {send "${{ secrets.NPM_PASSWORD }}\r"; exp_continue}
|
||||
"Email: (this IS public)" {send "bakk@tuta.io\r"; exp_continue}
|
||||
}
|
||||
EOD
|
||||
wasm-pack publish -a public
|
||||
|
||||
release_linux:
|
||||
name: release linux
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "kalk"
|
||||
version = "1.3.0"
|
||||
version = "1.4.0"
|
||||
authors = ["PaddiM8"]
|
||||
edition = "2018"
|
||||
readme = "README.md"
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "kalk_cli"
|
||||
version = "0.3.9"
|
||||
version = "0.3.10"
|
||||
authors = ["PaddiM8"]
|
||||
edition = "2018"
|
||||
readme = "../README.md"
|
||||
@ -16,7 +16,7 @@ path = "src/main.rs"
|
||||
name = "kalk"
|
||||
|
||||
[dependencies]
|
||||
kalk = { path = "../kalk", version = "^1.3.0" }
|
||||
kalk = { path = "../kalk", version = "^1.4.0" }
|
||||
rustyline = "7.0.0"
|
||||
ansi_term = "0.12.1"
|
||||
regex = "1"
|
||||
|
Loading…
Reference in New Issue
Block a user