chore(release): v1.0.10
This commit is contained in:
parent
bd470783b8
commit
c2a11da780
14
CHANGELOG.md
14
CHANGELOG.md
@ -1,5 +1,12 @@
|
|||||||
|
## <small>1.0.10 (2021-01-16)</small>
|
||||||
|
|
||||||
|
* fix: splitting tokens ([b876c92](https://github.com/simonecorsi/mawesome/commit/b876c92))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## <small>1.0.9 (2021-01-16)</small>
|
## <small>1.0.9 (2021-01-16)</small>
|
||||||
|
|
||||||
|
* chore(release): v1.0.9 ([e82522d](https://github.com/simonecorsi/mawesome/commit/e82522d))
|
||||||
* fix: better errors ([a6f8510](https://github.com/simonecorsi/mawesome/commit/a6f8510))
|
* fix: better errors ([a6f8510](https://github.com/simonecorsi/mawesome/commit/a6f8510))
|
||||||
|
|
||||||
|
|
||||||
@ -25,10 +32,3 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
## <small>1.0.5 (2021-01-16)</small>
|
|
||||||
|
|
||||||
* chore(release): v1.0.5 ([a8d14e1](https://github.com/simonecorsi/mawesome/commit/a8d14e1))
|
|
||||||
* fix: imports ([1146fe7](https://github.com/simonecorsi/mawesome/commit/1146fe7))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
8
index.js
8
index.js
@ -21213,7 +21213,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
const got_1 = __importDefault(__nccwpck_require__(3061));
|
const got_1 = __importDefault(__nccwpck_require__(3061));
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const GITHUB_TOKEN = core.getInput('github-token', { required: true });
|
const GITHUB_TOKEN = core.getInput('api-token', { required: true });
|
||||||
exports.default = got_1.default.extend({
|
exports.default = got_1.default.extend({
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `token ${GITHUB_TOKEN}`,
|
Authorization: `token ${GITHUB_TOKEN}`,
|
||||||
@ -21262,11 +21262,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const exec = __importStar(__nccwpck_require__(1514));
|
const exec = __importStar(__nccwpck_require__(1514));
|
||||||
const { GITHUB_REPOSITORY, GITHUB_REF } = process.env;
|
const { GITHUB_REPOSITORY, GITHUB_REF } = process.env;
|
||||||
const IS_TEST = process.env.NODE_ENV === 'test';
|
|
||||||
const branch = GITHUB_REF === null || GITHUB_REF === void 0 ? void 0 : GITHUB_REF.replace('refs/heads/', '');
|
const branch = GITHUB_REF === null || GITHUB_REF === void 0 ? void 0 : GITHUB_REF.replace('refs/heads/', '');
|
||||||
exports.default = new (class Git {
|
exports.default = new (class Git {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.commandsRun = [];
|
|
||||||
this.exec = (command) => {
|
this.exec = (command) => {
|
||||||
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
||||||
let execOutput = '';
|
let execOutput = '';
|
||||||
@ -21302,8 +21300,6 @@ exports.default = new (class Git {
|
|||||||
});
|
});
|
||||||
this.push = () => this.exec(`push origin ${branch} --follow-tags`);
|
this.push = () => this.exec(`push origin ${branch} --follow-tags`);
|
||||||
this.isShallow = () => __awaiter(this, void 0, void 0, function* () {
|
this.isShallow = () => __awaiter(this, void 0, void 0, function* () {
|
||||||
if (IS_TEST)
|
|
||||||
return false;
|
|
||||||
const isShallow = yield this.exec('rev-parse --is-shallow-repository');
|
const isShallow = yield this.exec('rev-parse --is-shallow-repository');
|
||||||
return isShallow.trim().replace('\n', '') === 'true';
|
return isShallow.trim().replace('\n', '') === 'true';
|
||||||
});
|
});
|
||||||
@ -21457,7 +21453,7 @@ function run() {
|
|||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
core.error('#catchAll:');
|
core.error('#run:');
|
||||||
core.error(error);
|
core.error(error);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mawesome",
|
"name": "mawesome",
|
||||||
"version": "1.0.9",
|
"version": "1.0.10",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user