-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,928 additions
and
2,204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: [ 12, 14, 16 ] | ||
node: [ 18, 20 ] | ||
env: | ||
FORCE_COLOR: 1 | ||
name: Node ${{ matrix.node }} | ||
|
@@ -22,7 +22,14 @@ jobs: | |
FORCE_COLOR: 0 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: yarn | ||
cache: npm | ||
|
||
- run: yarn | ||
- run: yarn test | ||
- run: npm install | ||
- run: npm test | ||
|
||
- name: Coveralls | ||
uses: coverallsapp/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-lcov: ./coverage/lcov.info | ||
flag-name: run-${{ matrix.node }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
#!/usr/bin/env node | ||
|
||
const NodePreGypGithub = require('../index.js'); | ||
const program = require('commander'); | ||
const { program } = require("commander"); | ||
|
||
program | ||
.command('publish') | ||
.storeOptionsAsProperties() | ||
.description('publishes the contents of .\\build\\stage\\{version} to the current version\'s GitHub release') | ||
.option("-r, --release", "publish immediately, do not create draft") | ||
.option("-s, --silent", "turns verbose messages off") | ||
.action(async function(options){ | ||
const opts = { | ||
draft: options.release ? false : true, | ||
verbose: options.silent ? false : true | ||
}; | ||
try { | ||
const nodePreGypGithub = new NodePreGypGithub(); | ||
await nodePreGypGithub.publish(opts); | ||
} catch (err) { | ||
console.error(`An error occurred whilst publishing:`, err); | ||
process.exit(1); | ||
} | ||
}); | ||
.command("publish") | ||
.description("publishes the contents of ./build/stage/{version} to the current version's GitHub release") | ||
.option("-r, --release", "publish immediately, do not create draft") | ||
.option("-s, --silent", "turns verbose messages off") | ||
.action(async (options) => { | ||
const opts = { | ||
draft: !options.release, | ||
verbose: !options.silent, | ||
}; | ||
try { | ||
const nodePreGypGithub = new NodePreGypGithub(); | ||
await nodePreGypGithub.publish(opts); | ||
} catch (err) { | ||
console.error(`An error occurred whilst publishing:`, err); | ||
process.exit(1); | ||
} | ||
}); | ||
|
||
program.parseAsync(process.argv); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.