Skip to content

Commit

Permalink
v0.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
UvDream committed Aug 16, 2022
1 parent 19f7867 commit a9d94ad
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
id: get_version
shell: bash
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
echo "using version tag ${GITHUB_REF:10}"
echo ::set-output name=version::"${GITHUB_REF:10}"
Expand All @@ -42,7 +43,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
platform: [ macos-latest, ubuntu-latest, windows-latest ]

runs-on: ${{ matrix.platform }}
steps:
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "md-editor",
"private": true,
"version": "0.3.7",
"version": "0.3.8",
"bin": {
"mdc": "bin/cli.js"
},
Expand Down Expand Up @@ -59,6 +59,7 @@
"inquirer": "^8.1.2",
"chalk": "^4.1.0",
"tsx": "^3.2.1",
"shelljs": "^0.8.5"
"shelljs": "^0.8.5",
"@types/shelljs": "^0.8.11"
}
}
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

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

5 changes: 3 additions & 2 deletions publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import tauriPkg from "./src-tauri/tauri.conf.json"
import inquirer from "inquirer"
// @ts-ignore
import chalk from "chalk";
// @ts-ignore
import shell from "shelljs";
// @ts-ignore
import fs from "fs";
Expand All @@ -26,7 +27,7 @@ const question = [
choices: opt,
}
];
inquirer.prompt(question).then(answer => {
inquirer.prompt(question).then((answer: any) => {
opt.forEach((element, index) => {
if (element === answer.operation) {
if (index === 3) {
Expand All @@ -44,7 +45,7 @@ inquirer.prompt(question).then(answer => {
})
})

async function deploy_version(version) {
async function deploy_version(version: string) {
try {
pkg.version = version;
tauriPkg.package.version = version
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "MdEditor",
"version": "0.3.7"
"version": "0.3.8"
},
"tauri": {
"allowlist": {
Expand Down

0 comments on commit a9d94ad

Please sign in to comment.