mirror of
https://github.com/codecov/codecov-action.git
synced 2026-04-18 20:02:34 +08:00
refactor: Pull version from package.json
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const core = require('@actions/core');
|
||||
const github = require('@actions/github');
|
||||
|
||||
import VERSION from './version';
|
||||
const pjson = require('../package.json');
|
||||
|
||||
const context = github.context;
|
||||
|
||||
@@ -59,7 +59,7 @@ const buildExec = () => {
|
||||
'-F',
|
||||
`${flags}`,
|
||||
'-Q',
|
||||
`github-action-${VERSION}`,
|
||||
`github-action-${pjson.version}`,
|
||||
);
|
||||
|
||||
const options:any = {};
|
||||
|
||||
Reference in New Issue
Block a user