Skip to content

Commit d7dd270

Browse files
feat: build for release
1 parent e280a87 commit d7dd270

File tree

10 files changed

+101
-51
lines changed

10 files changed

+101
-51
lines changed

README.ja.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,6 @@ https://github.com/actions/javascript-action
196196
}
197197
```
198198

199-
または、私が作成したテンプレートを使用してください。
200-
201-
[![technote-space/gh-actions-template - GitHub](https://gh-card.dev/repos/technote-space/gh-actions-template.svg)](https://github.com/technote-space/gh-actions-template)
202-
203-
204199
不要なファイルが削除された`GitHub Actions`の例は以下で確認できます。
205200
https://github.com/technote-space/release-github-actions/tree/gh-actions
206201

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,6 @@ Since processing by `ncc` is unnecessary, delete the related commands and packag
197197
}
198198
```
199199

200-
Or use the template I created.
201-
202-
[![technote-space/gh-actions-template - GitHub](https://gh-card.dev/repos/technote-space/gh-actions-template.svg)](https://github.com/technote-space/gh-actions-template)
203-
204-
205200
You can see an example of `GitHub Actions` with unnecessary files deleted below.
206201
https://github.com/technote-space/release-github-actions/tree/gh-actions
207202

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":"aa35a73084071db95da1deb2ff7d74862bdfab81","ref":"refs/tags/test/v6.2.3.355121342","tagName":"test/v6.2.3.355121342","branch":"gh-actions","tags":["test/v6.2.3.355121342","test/v6.2.3","test/v6.2","test/v6"],"updated_at":"2020-11-10T03:05:14.142Z"}
1+
{"owner":"technote-space","repo":"release-github-actions","sha":"FETCH_HEAD","ref":"refs/heads/master","tagName":"test/v6.2.3","branch":"gh-actions","tags":["test/v6.2.3","test/v6.2","test/v6"],"updated_at":"2020-11-12T06:07:31.488Z"}

lib/utils/misc.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,13 @@ exports.getOutputBuildInfoFilename = () => {
127127
}
128128
return filename;
129129
};
130-
const getVersionFragments = (tagName) => tagName.trim().replace(/^v?/gi, '').split('.');
131130
// eslint-disable-next-line no-magic-numbers
132-
exports.getMajorTag = (tagName) => 'v' + getVersionFragments(tagName).slice(0, 1);
131+
exports.getMajorTag = (tagName) => 'v' + github_action_helper_1.Utils.normalizeVersion(tagName, { slice: 1 });
133132
// eslint-disable-next-line no-magic-numbers
134-
exports.getMinorTag = (tagName) => 'v' + getVersionFragments(tagName).concat(['0']).slice(0, 2).join('.');
133+
exports.getMinorTag = (tagName) => 'v' + github_action_helper_1.Utils.normalizeVersion(tagName, { slice: 2 });
135134
// eslint-disable-next-line no-magic-numbers
136-
exports.getPatchTag = (tagName) => 'v' + getVersionFragments(tagName).concat(['0', '0']).slice(0, 3).join('.');
137-
exports.isValidTagName = (tagName) => github_action_helper_1.Utils.isSemanticVersioningTagName(tagName) || (exports.isTestTag(tagName) && github_action_helper_1.Utils.isSemanticVersioningTagName(exports.getTestTag(tagName)));
135+
exports.getPatchTag = (tagName) => 'v' + github_action_helper_1.Utils.normalizeVersion(tagName, { slice: 3 });
136+
exports.isValidTagName = (tagName) => github_action_helper_1.Utils.isValidSemanticVersioning(tagName) || (exports.isTestTag(tagName) && github_action_helper_1.Utils.isValidSemanticVersioning(exports.getTestTag(tagName)));
138137
exports.getCreateTags = (tagName) => {
139138
const settings = [
140139
{ condition: exports.isCreateMajorVersionTag, createTag: exports.getMajorTag },

node_modules/.yarn-integrity

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

node_modules/@technote-space/github-action-helper/README.ja.md

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

node_modules/@technote-space/github-action-helper/README.md

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

node_modules/@technote-space/github-action-helper/dist/utils.d.ts

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

node_modules/@technote-space/github-action-helper/dist/utils.js

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

0 commit comments

Comments
 (0)