mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-12 05:11:36 +00:00
Destructure package.json for version
This commit is contained in:
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user