You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[More details of execute command](#execute-commands)
94
+
80
95
### PACKAGE_MANAGER
81
96
Package manager to use to install dependencies.
82
97
If there is `yarn.lock` or` package-lock.json`, the action automatically determines the package manager to use, but this option can be used to specify it explicitly.
83
98
(`npm` or `yarn`)
84
99
default: `''`
85
100
86
-
### BUILD_COMMAND
87
-
Build command.
88
-
default: `''`
89
-
- If package.json includes `build` or `production` or `prod` in scripts, the command is used for build. (You can change this with [BUILD_COMMAND_TARGET](#build_command_target))
90
-
- If command does not have install command like `npm run install` or `yarn install`, install commands are added.
91
-
- If command is not provided, some files are deleted (see [CLEAN_TARGETS](#clean_targets)).
92
-
93
-
so if `BUILD_COMMAND` is not provided and package.json has `build` script,
This parameter is ignored if `BUILD_COMMAND` is provided.
125
-
126
117
### BUILD_COMMAND_TARGET
127
118
Command for search build command.
128
119
default: `''`
129
-
e.g. `compile`
120
+
e.g. `compile`
121
+
If this option is not provided, `build`, `production`, `prod` and `package` are used.
130
122
131
123
### CREATE_MAJOR_VERSION_TAG
132
124
Whether to create major version tag (e.g. v1).
@@ -150,12 +142,54 @@ default: `3`
150
142
### TEST_TAG_PREFIX
151
143
Prefix for test tag.
152
144
default: `''`
153
-
e.g. `'test/'`
145
+
e.g. `'test/'`
146
+
147
+
### CLEAN_TEST_TAG
148
+
Whether to clean test tag.
149
+
default: `'false'`
150
+
e.g. `'true'`
154
151
155
152
### ORIGINAL_TAG_PREFIX
156
153
Prefix to add when leaving the original tag.
157
154
default: `''`
158
-
e.g. `'original/'`
155
+
e.g. `'original/'`
156
+
157
+
## Execute commands
158
+
### Build
159
+
- If package.json includes `build`, `production`, `prod` or `package` in scripts, the command is used for build. (You can change this with [BUILD_COMMAND_TARGET](#build_command_target))
160
+
- If command does not have install command like `npm run install` or `yarn install`, install commands are added.
161
+
162
+
so if `BUILD_COMMAND` is not provided and package.json has `build` script,
163
+
the following commands are executed for build.
164
+
165
+
```shell
166
+
yarn install
167
+
yarn build
168
+
yarn install --production
169
+
```
170
+
171
+
### Delete files
172
+
To execute `GitHub Actions`, `src files used for build`, `test files`, `test settings`, etc. are not required.
173
+
And `GitHub Actions` is downloaded every time when it is used, so fewer files are better.
0 commit comments