Skip to content

Commit 80d9731

Browse files
feat: Build for release
1 parent c4031d4 commit 80d9731

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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":"4c29320ae90d779326afba63a5cde2ea18c7de53","ref":"refs/tags/test/v1.7.0","tagName":"test/v1.7.0","branch":"gh-actions","tags":["test/v1","test/v1.7","test/v1.7.0"],"updated_at":"2019-11-06T02:56:00.877Z"}
1+
{"owner":"technote-space","repo":"release-github-actions","sha":"7f2a554d4242c5966fccfc74524873b199914160","ref":"refs/tags/test/v1.7.0.1","tagName":"test/v1.7.0.1","branch":"gh-actions","tags":["test/v1","test/v1.7","test/v1.7.0","test/v1.7.0.1"],"updated_at":"2019-11-06T03:20:34.869Z"}

lib/utils/misc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ exports.getBuildCommands = (dir) => {
5050
commands.unshift(`${pkgManager} install`);
5151
}
5252
if (!hasInstallCommand) {
53+
if ('npm' === pkgManager) {
54+
commands.push('rm -rdf node_modules');
55+
}
5356
commands.push(`${pkgManager} install --production`);
5457
}
5558
if (addRemove) {

0 commit comments

Comments
 (0)