Destructure package.json for version

This commit is contained in:
RA80533
2021-06-13 02:12:33 -04:00
parent d1f4b0126d
commit 33974f67c6
3 changed files with 8 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
const core = require('@actions/core');
const github = require('@actions/github');
const pjson = require('../package.json');
const { version } = require('../package.json');
const context = github.context;
@@ -59,7 +59,7 @@ const buildExec = () => {
'-F',
`${flags}`,
'-Q',
`github-action-${pjson.version}`,
`github-action-${version}`,
);
const options:any = {};