Skip to content

Commit

Permalink
fix(ci): syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Aug 18, 2023
1 parent 6fd924e commit 7cca18c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
npm:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/[email protected]
Expand All @@ -18,13 +18,12 @@ jobs:
with:
node-version: ${{ env.NODE_VER }}
cache: "npm"

- name: Enable corepack
run: corepack enable
- name: Install dependencies
run: npm ci
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
tag: stable
uses: JS-DevTools/npm-publish@v2.2.1
with:
token: ${{ secrets.NPM_TOKEN }}
tag: stable
5 changes: 3 additions & 2 deletions lib/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,8 @@ const nwbuild = (options) => {
if (options.mode === "build") {
nw.build();
return 0;
} if (options.mode === "run") {
}
if (options.mode === "run") {
nw.run();
return 0;
} else {
Expand All @@ -1052,4 +1053,4 @@ const nwbuild = (options) => {

module.exports = NwBuilder;
exports = module.exports;
exports.nwbuild = nwbuild;
exports.nwbuild = nwbuild;
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"url": "https://github.com/nwutils/nw-builder.git"
},
"scripts": {
"format": "prettier --write ./bin ./lib ./src ./test",
"lint": "eslint ./bin/**.cjs ./lib/**.cjs ./src/**.js",
"fmt": "prettier --write .github ./bin ./lib ./src ./test",
"lnt": "eslint ./bin/**.cjs ./lib/**.cjs ./src/**.js",
"test": "npm run test:unit && tape './test/*.cjs'",
"test:unit": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"demo": "cd ./test/demo && npm run start",
Expand Down

0 comments on commit 7cca18c

Please sign in to comment.