github: print version

This commit is contained in:
Koushik Dutta
2022-09-09 12:45:13 -07:00
parent 3c2ee82046
commit 21ab390674
3 changed files with 7 additions and 0 deletions

View File

@@ -27,6 +27,9 @@ jobs:
with:
path: server
- name: Print Version
run: echo "Version ${{ github.event.inputs.package_version || steps.package-version.outputs.current-version }}"
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"

View File

@@ -0,0 +1,2 @@
cd $(dirname $0)
gh workflow run docker.yml -f PACKAGE_JSON_VERSION=$(node print-package-json-version.js)

View File

@@ -0,0 +1,2 @@
const packageJson = require('../package.json');
console.log(packageJson.version);