-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from JupiterOne/NO-TICKET/lock-auto-version
Lock auto to v11.0.1
- Loading branch information
Showing
3 changed files
with
63 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2019,14 +2019,6 @@ module.exports = require("path"); | |
|
||
/***/ }), | ||
|
||
/***/ 477: | ||
/***/ ((module) => { | ||
|
||
"use strict"; | ||
module.exports = require("querystring"); | ||
|
||
/***/ }), | ||
|
||
/***/ 404: | ||
/***/ ((module) => { | ||
|
||
|
@@ -2085,47 +2077,32 @@ var __webpack_exports__ = {}; | |
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. | ||
(() => { | ||
const core = __nccwpck_require__(186); | ||
const { stringify } = __nccwpck_require__(477); | ||
const npm_auth_token = core.getInput('npm_auth_token', { required: true }); | ||
const gh_token = core.getInput('gh_token', { required: true }); | ||
const npm_auth_token = core.getInput("npm_auth_token", { required: true }); | ||
const gh_token = core.getInput("gh_token", { required: true }); | ||
|
||
const main = async () => { | ||
|
||
const execSync = (__nccwpck_require__(81).execSync); | ||
|
||
try { | ||
|
||
const gitoutput = execSync('git log -1') | ||
if (gitoutput.includes('skip ci' )) | ||
{ | ||
console.log('skipping due to [skip ci] message') | ||
try { | ||
const gitoutput = execSync("git log -1"); | ||
if (gitoutput.includes("skip ci")) { | ||
console.log("skipping due to [skip ci] message"); | ||
return; | ||
} | ||
execSync(`echo "//registry.npmjs.org/:_authToken=${npm_auth_token}" > .npmrc`, | ||
{stdio: 'inherit'}) | ||
execSync('yarn global add auto', | ||
{stdio: 'inherit'}) | ||
execSync('yarn install --frozen-lockfile', | ||
{stdio: 'inherit'}) | ||
execSync('yarn build', | ||
{stdio: 'inherit'}) | ||
execSync('git config user.email "[email protected]"', | ||
{stdio: 'inherit'}) | ||
execSync('git config user.email "[email protected]"', | ||
{stdio: 'inherit'}) | ||
execSync('git config user.name "j1-internal-automation"', | ||
{stdio: 'inherit'}) | ||
execSync('git config --global commit.verbose true', | ||
{stdio: 'inherit'}) | ||
execSync('git fetch --tags', | ||
{stdio: 'inherit'}) | ||
execSync(`NPM_TOKEN=${npm_auth_token} GH_TOKEN=${gh_token} auto shipit --email [email protected] --name j1-internal-automation`, | ||
{stdio: 'inherit'}) | ||
} | ||
catch (error) { | ||
execSync(`echo "//registry.npmjs.org/:_authToken=${npm_auth_token}" > .npmrc`, { stdio: "inherit" }); | ||
execSync("yarn global add [email protected]", { stdio: "inherit" }); | ||
execSync("yarn install --frozen-lockfile", { stdio: "inherit" }); | ||
execSync("yarn build", { stdio: "inherit" }); | ||
execSync('git config user.email "[email protected]"', { stdio: "inherit" }); | ||
execSync('git config user.email "[email protected]"', { stdio: "inherit" }); | ||
execSync('git config user.name "j1-internal-automation"', { stdio: "inherit" }); | ||
execSync("git config --global commit.verbose true", { stdio: "inherit" }); | ||
execSync("git fetch --tags", { stdio: "inherit" }); | ||
execSync(`NPM_TOKEN=${npm_auth_token} GH_TOKEN=${gh_token} auto shipit --email [email protected] --name j1-internal-automation`, { stdio: "inherit" }); | ||
} catch (error) { | ||
core.setFailed(error.message); | ||
} | ||
} | ||
}; | ||
|
||
main(); | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,29 @@ | ||
const core = require('@actions/core'); | ||
const { stringify } = require('querystring'); | ||
const npm_auth_token = core.getInput('npm_auth_token', { required: true }); | ||
const gh_token = core.getInput('gh_token', { required: true }); | ||
const core = require("@actions/core"); | ||
const npm_auth_token = core.getInput("npm_auth_token", { required: true }); | ||
const gh_token = core.getInput("gh_token", { required: true }); | ||
|
||
const main = async () => { | ||
const execSync = require("child_process").execSync; | ||
|
||
const execSync = require('child_process').execSync; | ||
|
||
try { | ||
|
||
const gitoutput = execSync('git log -1') | ||
if (gitoutput.includes('skip ci' )) | ||
{ | ||
console.log('skipping due to [skip ci] message') | ||
const gitoutput = execSync("git log -1"); | ||
if (gitoutput.includes("skip ci")) { | ||
console.log("skipping due to [skip ci] message"); | ||
return; | ||
} | ||
execSync(`echo "//registry.npmjs.org/:_authToken=${npm_auth_token}" > .npmrc`, | ||
{stdio: 'inherit'}) | ||
execSync('yarn global add auto', | ||
{stdio: 'inherit'}) | ||
execSync('yarn install --frozen-lockfile', | ||
{stdio: 'inherit'}) | ||
execSync('yarn build', | ||
{stdio: 'inherit'}) | ||
execSync('git config user.email "[email protected]"', | ||
{stdio: 'inherit'}) | ||
execSync('git config user.email "[email protected]"', | ||
{stdio: 'inherit'}) | ||
execSync('git config user.name "j1-internal-automation"', | ||
{stdio: 'inherit'}) | ||
execSync('git config --global commit.verbose true', | ||
{stdio: 'inherit'}) | ||
execSync('git fetch --tags', | ||
{stdio: 'inherit'}) | ||
execSync(`NPM_TOKEN=${npm_auth_token} GH_TOKEN=${gh_token} auto shipit --email [email protected] --name j1-internal-automation`, | ||
{stdio: 'inherit'}) | ||
} | ||
catch (error) { | ||
execSync(`echo "//registry.npmjs.org/:_authToken=${npm_auth_token}" > .npmrc`, { stdio: "inherit" }); | ||
execSync("yarn global add [email protected]", { stdio: "inherit" }); | ||
execSync("yarn install --frozen-lockfile", { stdio: "inherit" }); | ||
execSync("yarn build", { stdio: "inherit" }); | ||
execSync('git config user.email "[email protected]"', { stdio: "inherit" }); | ||
execSync('git config user.email "[email protected]"', { stdio: "inherit" }); | ||
execSync('git config user.name "j1-internal-automation"', { stdio: "inherit" }); | ||
execSync("git config --global commit.verbose true", { stdio: "inherit" }); | ||
execSync("git fetch --tags", { stdio: "inherit" }); | ||
execSync(`NPM_TOKEN=${npm_auth_token} GH_TOKEN=${gh_token} auto shipit --email [email protected] --name j1-internal-automation`, { stdio: "inherit" }); | ||
} catch (error) { | ||
core.setFailed(error.message); | ||
} | ||
} | ||
}; | ||
|
||
main(); |