Skip to content

Commit 65256eb

Browse files
chore: release 0.8.0 (#64)
* chore: release 0.8.0 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Jiawen Geng <[email protected]> Co-authored-by: gengjiawen <[email protected]>
1 parent 8957ca1 commit 65256eb

File tree

10 files changed

+63
-22
lines changed

10 files changed

+63
-22
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: prepare-dist
2+
on:
3+
push:
4+
branches:
5+
- release-*
6+
jobs:
7+
prepare-dist:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
# npx not work in this cases due to some werid permission issues
12+
- run: docker run -v $PWD:/pwd -w /pwd gengjiawen/node-build bash -c "yarn && node node_modules/.bin/ts-node scripts/bump_cargo_packages.ts"
13+
- uses: stefanzweifel/git-auto-commit-action@v4
14+
with:
15+
commit_message: "chore: prepare rust packages"

.github/workflows/release-please.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,12 @@ jobs:
2929
registry-url: "https://registry.npmjs.org"
3030
if: ${{ steps.release.outputs.release_created }}
3131
- run: npx envinfo
32-
- run: cargo install cargo-workspaces
33-
- run: yarn && npx ts-node scripts/bump_cargo_packages.ts
34-
- uses: stefanzweifel/git-auto-commit-action@v4
35-
with:
36-
commit_message: 'chore: prepare rust packages'
3732
- run: npm publish --access public
3833
working-directory: wasm/pkg
3934
env:
4035
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4136
if: ${{ steps.release.outputs.release_created }}
37+
- run: cargo workspaces publish --from-git --token $CARGO_TOKEN
38+
env:
39+
CARGO_TOKEN: ${{secrets.CARGO_TOKEN}}
40+
if: ${{ steps.release.outputs.release_created }}

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# Changelog
22

3+
## [0.8.0](https://www.github.com/gengjiawen/monkey-rust/compare/v0.7.0...v0.8.0) (2021-09-18)
4+
5+
6+
### Features
7+
8+
* auto publish cargo packages ([#71](https://www.github.com/gengjiawen/monkey-rust/issues/71)) ([8957ca1](https://www.github.com/gengjiawen/monkey-rust/commit/8957ca19cd6d2c7fa5addf282298cf2d21d4ca5d))
9+
* move built-in to object ([1a40c1c](https://www.github.com/gengjiawen/monkey-rust/commit/1a40c1ce40b11d0427f22d7e8f690130a83fa9df))
10+
11+
12+
### Bug Fixes
13+
14+
* compiler warning ([c74fde8](https://www.github.com/gengjiawen/monkey-rust/commit/c74fde88291ba44e32d94129d5fd02036c9a5764))
15+
* fncall span issue ([07484b1](https://www.github.com/gengjiawen/monkey-rust/commit/07484b1b35a928553ba5d60e8227e8c821a7e702))
16+
* interpreter description ([bee0533](https://www.github.com/gengjiawen/monkey-rust/commit/bee05332fa77ea5bfea07121c7f944b62d82affc))
17+
18+
19+
### Dev
20+
21+
* add dev log ([2c6e9db](https://www.github.com/gengjiawen/monkey-rust/commit/2c6e9db8890db40601ca373f2b649bf3c0b1ba18))
22+
* auto setup astexplorer ([37097ed](https://www.github.com/gengjiawen/monkey-rust/commit/37097eddc83f4fc513e25d471fd34cd1d54bed0c))
23+
* remove redundant step ([dd68d9d](https://www.github.com/gengjiawen/monkey-rust/commit/dd68d9d649fdd2ef24d027cef73f0839fbd55e7c))
24+
* setup astexplorer ([ef803aa](https://www.github.com/gengjiawen/monkey-rust/commit/ef803aa50241b46836341a39335920e7f3a4d842))
25+
* split interpreter test ([ddf668e](https://www.github.com/gengjiawen/monkey-rust/commit/ddf668e321d82b4d2e3b4d98188278ad3bed7002))
26+
* split parser test ([73801aa](https://www.github.com/gengjiawen/monkey-rust/commit/73801aa678b3489533b2a7e84571d9d71a779015))
27+
* use latest node.js ([3bac409](https://www.github.com/gengjiawen/monkey-rust/commit/3bac4095a44357cf9eec4b2e685779e5e075df66))
28+
329
## [0.7.0](https://www.github.com/gengjiawen/monkey-rust/compare/v0.6.0...v0.7.0) (2021-07-25)
430

531

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

interpreter/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "monkey-interpreter"
3-
version = "0.7.0"
3+
version = "0.8.0"
44
description = "an interpreter for monkeylang"
55
homepage = "https://github.com/gengjiawen/monkey-rust"
66
repository = "https://github.com/gengjiawen/monkey-rust"
@@ -19,5 +19,5 @@ name = "monkey-interpreter"
1919
path = "main.rs"
2020

2121
[dependencies]
22-
monkey-parser = { path = "../parser", version = "0.7.0" }
23-
monkey-object = { path = "../object", version = "0.7.0" }
22+
monkey-parser = { path = "../parser", version = "0.8.0" }
23+
monkey-object = { path = "../object", version = "0.8.0" }

lexer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "monkey-lexer"
3-
version = "0.7.0"
3+
version = "0.8.0"
44
description = "a lexer for monkey lang"
55
homepage = "https://github.com/gengjiawen/monkey-rust"
66
repository = "https://github.com/gengjiawen/monkey-rust"

object/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "monkey-object"
3-
version = "0.7.0"
3+
version = "0.8.0"
44
description = "a object system for monkey lang"
55
homepage = "https://github.com/gengjiawen/monkey-rust"
66
repository = "https://github.com/gengjiawen/monkey-rust"
@@ -16,7 +16,7 @@ path= "object.rs"
1616

1717
[dependencies]
1818
phf = { version = "0.10", features = ["macros"] }
19-
monkey-parser = { path = "../parser", version = "0.7.0" }
19+
monkey-parser = { path = "../parser", version = "0.8.0" }
2020

2121
[dev-dependencies]
2222
insta = "1.7.2"

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "monkey-rust",
3-
"version": "0.7.0",
3+
"version": "0.8.0",
44
"description": "![Rust](https://github.com/gengjiawen/monkey-rust/workflows/Rust/badge.svg) [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/gengjiawen/monkey_rust)",
55
"main": "index.js",
66
"directories": {
77
"example": "examples"
88
},
99
"scripts": {
10+
"format": "npx prettier .github/**/*.yml *.yml --write",
1011
"ua": "npx @gengjiawen/git-repo-cli clone fkling/astexplorer ./ast-website/",
1112
"test": "echo \"Error: no test specified\" && exit 1"
1213
},
@@ -16,7 +17,7 @@
1617
},
1718
"keywords": [],
1819
"author": "",
19-
"license": "ISC",
20+
"license": "MIT",
2021
"bugs": {
2122
"url": "https://github.com/gengjiawen/monkey-rust/issues"
2223
},

parser/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "monkey-parser"
3-
version = "0.7.0"
3+
version = "0.8.0"
44
description = "a parser for monkey lang"
55
homepage = "https://github.com/gengjiawen/monkey-rust"
66
repository = "https://github.com/gengjiawen/monkey-rust"
@@ -19,7 +19,7 @@ name = "monkey-parser"
1919
path = "main.rs"
2020

2121
[dependencies]
22-
monkey-lexer = { path = "../lexer", version = "0.7.0" }
22+
monkey-lexer = { path = "../lexer", version = "0.8.0" }
2323
serde = {version = "1.0", features = ["derive"]}
2424
serde_json = "1.0"
2525

wasm/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "monkey-wasm"
3-
version = "0.7.0"
3+
version = "0.8.0"
44
description = "monkey lang parser wasm version"
55
homepage = "https://github.com/gengjiawen/monkey-rust"
66
repository = "https://github.com/gengjiawen/monkey-rust"
@@ -16,7 +16,7 @@ crate-type = ["cdylib", "rlib"]
1616
default = ["console_error_panic_hook"]
1717

1818
[dependencies]
19-
monkey-parser = { path = "../parser", version = "0.7.0" }
19+
monkey-parser = { path = "../parser", version = "0.8.0" }
2020

2121
wasm-bindgen = "0.2.77"
2222

0 commit comments

Comments
 (0)