Skip to content

Commit

Permalink
fix workflow (#15)
Browse files Browse the repository at this point in the history
* fix workflow

* fix

* fix

* fix
  • Loading branch information
eronnen authored Oct 18, 2023
1 parent 233be30 commit 13244d2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ name: Build VSCode Extension
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v1
with:
node-version: 18
- run: npm install
- run: npm install --global @vscode/vsce
- run: vsce package
- uses: actions/upload-artifact@v3
with:
name: vscode-markdown-chess.vsix
path: "*.vsix"
- uses: actions/checkout@v4
- uses: actions/setup-node@v1
with:
node-version: 18
- run: npm install
- run: npm install --global @vscode/vsce
- run: vsce package
- uses: actions/upload-artifact@v3
with:
name: vscode-markdown-chess.vsix
path: "*.vsix"
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,20 +182,20 @@
},
"scripts": {
"lint": "eslint src --ext ts",
"format": "prettier --write .",
"check-format": "prettier --check .",
"compile-markdown": "webpack --mode production --config ./webpack/markdownPreview.webpack.config.ts",
"compile-ext": "webpack --mode development --config ./webpack/extension.webpack.config.ts",
"compile-ext-web": "webpack --mode development --config ./webpack/webExtension.webpack.config.ts",
"format": "npx prettier --write .",
"check-format": "npx prettier --check .",
"compile-markdown": "npx webpack --mode production --config ./webpack/markdownPreview.webpack.config.ts",
"compile-ext": "npx webpack --mode development --config ./webpack/extension.webpack.config.ts",
"compile-ext-web": "npx webpack --mode development --config ./webpack/webExtension.webpack.config.ts",
"compile-tests": "tsc -p src/extension && tsc -p src/markdown",
"watch": "webpack --watch --config ./webpack/extension.webpack.config.ts",
"watch": "npx webpack --watch --config ./webpack/extension.webpack.config.ts",
"pretest": "npm run lint && npm run compile-tests && npm run compile-ext && npm run compile-markdown",
"test": "node ./out/extension/extension/test/runExtensionsTest.js",
"premarkdowntest": "npm run compile-tests && cp ./src/extension/test/*.txt ./out/extension/extension/test/",
"markdowntest": "mocha --file ./out/extension/extension/test/runMarkdownTest.js",
"run-in-browser": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=. .",
"package": "webpack --mode production --devtool hidden-source-map --config ./webpack/extension.webpack.config.ts",
"package-web": "webpack --mode production --devtool hidden-source-map --config ./webpack/webExtension.webpack.config.ts",
"markdowntest": "npx mocha --file ./out/extension/extension/test/runMarkdownTest.js",
"run-in-browser": "npx vscode-test-web --browserType=chromium --extensionDevelopmentPath=. .",
"package": "npx webpack --mode production --devtool hidden-source-map --config ./webpack/extension.webpack.config.ts",
"package-web": "npx webpack --mode production --devtool hidden-source-map --config ./webpack/webExtension.webpack.config.ts",
"vscode:prepublish": "npm run lint && npm run check-format && npm run package && npm run package-web && npm run compile-markdown"
},
"devDependencies": {
Expand Down

0 comments on commit 13244d2

Please sign in to comment.