Browse Source

include version in package.json

master
Andrew Kaiser 4 years ago
parent
commit
ade94ffc7b
2 changed files with 5 additions and 2 deletions
  1. +1
    -1
      .github/workflows/npm-publish.yml
  2. +4
    -1
      bin/cli.js

+ 1
- 1
.github/workflows/npm-publish.yml View File

@ -23,7 +23,7 @@ jobs:
- run: git fetch origin master
- run: git checkout master
- run: git add package.json
- run: git commit --messsage "release $TAG"
- run: git commit --message "release $TAG"
env:
TAG: ${{ github.event.release.tag_name }}
- run: git remote add deploy https://${GITHUB_TOKEN}@github.com/${{ github.repository }}.git


+ 4
- 1
bin/cli.js View File

@ -4,6 +4,7 @@ const os = require('os')
const path = require('path')
const { exec } = require('child_process')
const minimist = require('minimist')
const packageJson = require('../package.json')
const menu = require('../src')
const obfuscateState = require('../src/util/obfuscate')
const { scheduleCleanup } = require('../src/schedule-cleanup')
@ -20,7 +21,9 @@ const STDOUT_DEFAULT = false
const args = minimist(process.argv.slice(2))
if (args.help) {
console.log(
`Usage: bitwarden-dmenu [options]
`bitwarden-dmenu v${packageJson.version}
Usage: bitwarden-dmenu [options]
The DMENU_PATH environment variable can be used to point to an alternative dmenu implementation. Defaults to 'dmenu'.


Loading…
Cancel
Save