Skip to content

Commit 9d73d26

Browse files
feat: build for release
1 parent 7f9e9b9 commit 9d73d26

File tree

103 files changed

+39
-39
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+39
-39
lines changed

README.ja.md

Lines changed: 3 additions & 2 deletions

README.md

Lines changed: 3 additions & 2 deletions

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@ inputs:
3939
required: true
4040
BUILD_COMMAND_TARGET:
4141
description: Command for search build command.
42-
default: 'build,production,prod,package,pack'
42+
default: 'prepare,build,production,prod,package,pack'
4343
required: true
44+
ALLOW_MULTIPLE_BUILD_COMMANDS:
45+
description: Whether to allow run multiple build commands.
46+
default: 'true'
47+
required: false
4448
CREATE_MAJOR_VERSION_TAG:
4549
description: Whether to create major version tag.
4650
default: 'true'

build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"owner":"technote-space","repo":"release-github-actions","sha":"ead5707552f95c6ef61bc940d56614bff41dff4a","ref":"refs/tags/test/v6.0.0.1","tagName":"test/v6.0.0.1","branch":"gh-actions","tags":["test/v6.0.0.1","test/v6.0.0","test/v6.0","test/v6"],"updated_at":"2020-04-05T17:12:34.739Z"}
1+
{"owner":"technote-space","repo":"release-github-actions","sha":"e01702d028aff415766a2251bb7eecd920756c6e","ref":"refs/tags/test/v6.0.0.2","tagName":"test/v6.0.0.2","branch":"gh-actions","tags":["test/v6.0.0.2","test/v6.0.0","test/v6.0","test/v6"],"updated_at":"2020-04-05T18:13:22.503Z"}

lib/utils/misc.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ exports.detectBuildCommands = (dir, runCommand, commands) => {
2929
targets.push(target);
3030
}
3131
}
32-
return targets;
32+
// eslint-disable-next-line no-magic-numbers
33+
return github_action_helper_1.Utils.getBoolValue(core_1.getInput('ALLOW_MULTIPLE_BUILD_COMMANDS')) ? targets : targets.slice(0, 1);
3334
};
3435
exports.getBackupCommands = (buildDir, pushDir) => [
3536
{
@@ -114,9 +115,9 @@ const getTestTagPrefixRegExp = () => github_action_helper_1.Utils.getPrefixRegEx
114115
exports.isTestTag = (tagName) => !!exports.getTestTagPrefix() && getTestTagPrefixRegExp().test(tagName);
115116
exports.getTestTag = (tagName) => tagName.replace(getTestTagPrefixRegExp(), '');
116117
exports.getOriginalTagPrefix = () => core_1.getInput('ORIGINAL_TAG_PREFIX');
117-
exports.isCreateMajorVersionTag = () => github_action_helper_1.Utils.getBoolValue(core_1.getInput('CREATE_MAJOR_VERSION_TAG') || 'true');
118-
exports.isCreateMinorVersionTag = () => github_action_helper_1.Utils.getBoolValue(core_1.getInput('CREATE_MINOR_VERSION_TAG') || 'true');
119-
exports.isCreatePatchVersionTag = () => github_action_helper_1.Utils.getBoolValue(core_1.getInput('CREATE_PATCH_VERSION_TAG') || 'true');
118+
exports.isCreateMajorVersionTag = () => github_action_helper_1.Utils.getBoolValue(core_1.getInput('CREATE_MAJOR_VERSION_TAG'));
119+
exports.isCreateMinorVersionTag = () => github_action_helper_1.Utils.getBoolValue(core_1.getInput('CREATE_MINOR_VERSION_TAG'));
120+
exports.isCreatePatchVersionTag = () => github_action_helper_1.Utils.getBoolValue(core_1.getInput('CREATE_PATCH_VERSION_TAG'));
120121
exports.isEnabledCleanTestTag = () => github_action_helper_1.Utils.getBoolValue(core_1.getInput('CLEAN_TEST_TAG'));
121122
exports.getOutputBuildInfoFilename = () => {
122123
const filename = core_1.getInput('OUTPUT_BUILD_INFO_FILENAME');

node_modules/.yarn-integrity

Lines changed: 1 addition & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@actions/github/node_modules/universal-user-agent/dist-node/index.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/@actions/github/node_modules/universal-user-agent/dist-web/index.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)