Skip to content

Commit 2fb9bef

Browse files
feat: Build for release
1 parent aba8c5f commit 2fb9bef

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

README.ja.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@
8686
default: `''`
8787
[More details of execute command](#execute-commands)
8888
89-
### DELETE_TARGETS
89+
### CLEAN_TARGETS
9090
[More details of execute command](#execute-commands)
91-
リリース前に削除するファイルやディレクトリ (カンマ区切り)
91+
リリース前に掃除するファイルやディレクトリ (カンマ区切り)
9292
default: `.[!.]*,__tests__,src,*.js,*.ts,*.json,*.lock,_config.yml`
9393
絶対パスや `..` は使用できません。
9494

@@ -172,7 +172,7 @@ yarn install --production
172172
`GitHub Actions` の実行には「ビルドに使用するソース」や「テストファイル」、「テストの設定」などを必要としません。
173173
そして `GitHub Actions` は使用されるたびにダウンロードされるため、ファイルは少ないほうが良いです。
174174

175-
`DELETE_TARGETS` オプションはこの目的のために使用されます。
175+
`CLEAN_TARGETS` オプションはこの目的のために使用されます。
176176
default: `.[!.]*,__tests__,src,*.js,*.ts,*.json,*.lock,_config.yml`
177177

178178
```shell

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ Build command.
8686
default: `''`
8787
[More details of execute command](#execute-commands)
8888
89-
### DELETE_TARGETS
90-
Files or directories to delete before release (Comma separated).
89+
### CLEAN_TARGETS
90+
Files or directories to clean before release (Comma separated).
9191
default: `.[!.]*,__tests__,src,*.js,*.ts,*.json,*.lock,_config.yml`
9292
Absolute path and `..` are not permitted to use.
9393
[More details of execute command](#execute-commands)
@@ -172,7 +172,7 @@ yarn install --production
172172
To execute `GitHub Actions`, `src files used for build`, `test files`, `test settings`, etc. are not required.
173173
And `GitHub Actions` is downloaded every time when it is used, so fewer files are better.
174174

175-
`DELETE_TARGETS` option is used for this purpose.
175+
`CLEAN_TARGETS` option is used for this purpose.
176176
default: `.[!.]*,__tests__,src,*.js,*.ts,*.json,*.lock,_config.yml`
177177

178178
```shell

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ inputs:
2626
BRANCH_NAME:
2727
description: Branch name.
2828
default: 'gh-actions'
29-
DELETE_TARGETS:
30-
description: Files or directories to delete before release. (Comma separated)
29+
CLEAN_TARGETS:
30+
description: Files or directories to clean before release. (Comma separated)
3131
default: '.[!.]*,__tests__,src,*.js,*.ts,*.json,*.lock,_config.yml'
3232
BUILD_COMMAND_TARGET:
3333
description: Command for search build command.

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":"6d981505947fa0a939a019876c320e3dfe1f5a20","ref":"refs/tags/test/v2.0.0","tagName":"test/v2.0.0","branch":"gh-actions","tags":["test/v2","test/v2.0","test/v2.0.0"],"updated_at":"2019-12-08T18:09:05.788Z"}
1+
{"owner":"technote-space","repo":"release-github-actions","sha":"56f9dad9b3fb9a69c40f8a34f43bf83f54e05064","ref":"refs/tags/test/v2.0.0.1","tagName":"test/v2.0.0.1","branch":"gh-actions","tags":["test/v2","test/v2.0","test/v2.0.0","test/v2.0.0.1"],"updated_at":"2019-12-09T12:51:08.729Z"}

lib/utils/misc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const github_action_helper_1 = require("@technote-space/github-action-helper");
99
const core_1 = require("@actions/core");
1010
const constant_1 = require("../constant");
1111
const { getWorkspace, getPrefixRegExp, getBoolValue, getArrayInput, uniqueArray, isSemanticVersioningTagName, useNpm, escapeRegExp } = github_action_helper_1.Utils;
12-
const getDeleteTargets = () => getArrayInput('DELETE_TARGETS')
12+
const getCleanTargets = () => getArrayInput('CLEAN_TARGETS')
1313
.map(target => target.replace(/[\x00-\x1f\x80-\x9f]/, '').trim()) // eslint-disable-line no-control-regex
1414
.filter(target => target && !target.startsWith('/') && !target.includes('..'));
1515
const normalizeCommand = (command) => command.trim().replace(/\s{2,}/g, ' ');
@@ -75,7 +75,7 @@ exports.getBuildCommands = (dir) => {
7575
}
7676
commands.push(`${pkgManager} install --production`);
7777
}
78-
commands.push(...exports.getClearFilesCommands(getDeleteTargets()));
78+
commands.push(...exports.getClearFilesCommands(getCleanTargets()));
7979
return commands;
8080
};
8181
exports.getCommitMessage = () => core_1.getInput('COMMIT_MESSAGE') || constant_1.DEFAULT_COMMIT_MESSAGE;

0 commit comments

Comments
 (0)