Skip to content

Commit 464151d

Browse files
committed
Lock auto to v11.0.1
1 parent 0804849 commit 464151d

File tree

3 files changed

+63
-85
lines changed

3 files changed

+63
-85
lines changed

dist/index.js

Lines changed: 18 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,14 +2019,6 @@ module.exports = require("path");
20192019

20202020
/***/ }),
20212021

2022-
/***/ 477:
2023-
/***/ ((module) => {
2024-
2025-
"use strict";
2026-
module.exports = require("querystring");
2027-
2028-
/***/ }),
2029-
20302022
/***/ 404:
20312023
/***/ ((module) => {
20322024

@@ -2085,47 +2077,32 @@ var __webpack_exports__ = {};
20852077
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
20862078
(() => {
20872079
const core = __nccwpck_require__(186);
2088-
const { stringify } = __nccwpck_require__(477);
2089-
const npm_auth_token = core.getInput('npm_auth_token', { required: true });
2090-
const gh_token = core.getInput('gh_token', { required: true });
2080+
const npm_auth_token = core.getInput("npm_auth_token", { required: true });
2081+
const gh_token = core.getInput("gh_token", { required: true });
20912082

20922083
const main = async () => {
2093-
20942084
const execSync = (__nccwpck_require__(81).execSync);
2095-
2096-
try {
20972085

2098-
const gitoutput = execSync('git log -1')
2099-
if (gitoutput.includes('skip ci' ))
2100-
{
2101-
console.log('skipping due to [skip ci] message')
2086+
try {
2087+
const gitoutput = execSync("git log -1");
2088+
if (gitoutput.includes("skip ci")) {
2089+
console.log("skipping due to [skip ci] message");
21022090
return;
21032091
}
2104-
execSync(`echo "//registry.npmjs.org/:_authToken=${npm_auth_token}" > .npmrc`,
2105-
{stdio: 'inherit'})
2106-
execSync('yarn global add auto',
2107-
{stdio: 'inherit'})
2108-
execSync('yarn install --frozen-lockfile',
2109-
{stdio: 'inherit'})
2110-
execSync('yarn build',
2111-
{stdio: 'inherit'})
2112-
execSync('git config user.email "[email protected]"',
2113-
{stdio: 'inherit'})
2114-
execSync('git config user.email "[email protected]"',
2115-
{stdio: 'inherit'})
2116-
execSync('git config user.name "j1-internal-automation"',
2117-
{stdio: 'inherit'})
2118-
execSync('git config --global commit.verbose true',
2119-
{stdio: 'inherit'})
2120-
execSync('git fetch --tags',
2121-
{stdio: 'inherit'})
2122-
execSync(`NPM_TOKEN=${npm_auth_token} GH_TOKEN=${gh_token} auto shipit --email [email protected] --name j1-internal-automation`,
2123-
{stdio: 'inherit'})
2124-
}
2125-
catch (error) {
2092+
execSync(`echo "//registry.npmjs.org/:_authToken=${npm_auth_token}" > .npmrc`, { stdio: "inherit" });
2093+
execSync("yarn global add [email protected]", { stdio: "inherit" });
2094+
execSync("yarn install --frozen-lockfile", { stdio: "inherit" });
2095+
execSync("yarn build", { stdio: "inherit" });
2096+
execSync('git config user.email "[email protected]"', { stdio: "inherit" });
2097+
execSync('git config user.email "[email protected]"', { stdio: "inherit" });
2098+
execSync('git config user.name "j1-internal-automation"', { stdio: "inherit" });
2099+
execSync("git config --global commit.verbose true", { stdio: "inherit" });
2100+
execSync("git fetch --tags", { stdio: "inherit" });
2101+
execSync(`NPM_TOKEN=${npm_auth_token} GH_TOKEN=${gh_token} auto shipit --email [email protected] --name j1-internal-automation`, { stdio: "inherit" });
2102+
} catch (error) {
21262103
core.setFailed(error.message);
21272104
}
2128-
}
2105+
};
21292106

21302107
main();
21312108

package-lock.json

Lines changed: 26 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js

Lines changed: 19 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,29 @@
1-
const core = require('@actions/core');
2-
const { stringify } = require('querystring');
3-
const npm_auth_token = core.getInput('npm_auth_token', { required: true });
4-
const gh_token = core.getInput('gh_token', { required: true });
1+
const core = require("@actions/core");
2+
const npm_auth_token = core.getInput("npm_auth_token", { required: true });
3+
const gh_token = core.getInput("gh_token", { required: true });
54

65
const main = async () => {
6+
const execSync = require("child_process").execSync;
77

8-
const execSync = require('child_process').execSync;
9-
108
try {
11-
12-
const gitoutput = execSync('git log -1')
13-
if (gitoutput.includes('skip ci' ))
14-
{
15-
console.log('skipping due to [skip ci] message')
9+
const gitoutput = execSync("git log -1");
10+
if (gitoutput.includes("skip ci")) {
11+
console.log("skipping due to [skip ci] message");
1612
return;
1713
}
18-
execSync(`echo "//registry.npmjs.org/:_authToken=${npm_auth_token}" > .npmrc`,
19-
{stdio: 'inherit'})
20-
execSync('yarn global add auto',
21-
{stdio: 'inherit'})
22-
execSync('yarn install --frozen-lockfile',
23-
{stdio: 'inherit'})
24-
execSync('yarn build',
25-
{stdio: 'inherit'})
26-
execSync('git config user.email "[email protected]"',
27-
{stdio: 'inherit'})
28-
execSync('git config user.email "[email protected]"',
29-
{stdio: 'inherit'})
30-
execSync('git config user.name "j1-internal-automation"',
31-
{stdio: 'inherit'})
32-
execSync('git config --global commit.verbose true',
33-
{stdio: 'inherit'})
34-
execSync('git fetch --tags',
35-
{stdio: 'inherit'})
36-
execSync(`NPM_TOKEN=${npm_auth_token} GH_TOKEN=${gh_token} auto shipit --email [email protected] --name j1-internal-automation`,
37-
{stdio: 'inherit'})
38-
}
39-
catch (error) {
14+
execSync(`echo "//registry.npmjs.org/:_authToken=${npm_auth_token}" > .npmrc`, { stdio: "inherit" });
15+
execSync("yarn global add [email protected]", { stdio: "inherit" });
16+
execSync("yarn install --frozen-lockfile", { stdio: "inherit" });
17+
execSync("yarn build", { stdio: "inherit" });
18+
execSync('git config user.email "[email protected]"', { stdio: "inherit" });
19+
execSync('git config user.email "[email protected]"', { stdio: "inherit" });
20+
execSync('git config user.name "j1-internal-automation"', { stdio: "inherit" });
21+
execSync("git config --global commit.verbose true", { stdio: "inherit" });
22+
execSync("git fetch --tags", { stdio: "inherit" });
23+
execSync(`NPM_TOKEN=${npm_auth_token} GH_TOKEN=${gh_token} auto shipit --email [email protected] --name j1-internal-automation`, { stdio: "inherit" });
24+
} catch (error) {
4025
core.setFailed(error.message);
4126
}
42-
}
27+
};
4328

4429
main();

0 commit comments

Comments
 (0)