@wjwjq/release-helper 0.2.94 → 0.2.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/deploy/script/nginx.sh +2 -2
- package/dist/pack.js +3 -2
- package/dist/publish.js +3 -1
- package/dist/release.js +1 -0
- package/dist/utils.js +5 -0
- package/package.json +1 -1
|
@@ -295,12 +295,12 @@ install_nginx_from_source(){
|
|
|
295
295
|
cd "${tar_dir}"
|
|
296
296
|
|
|
297
297
|
./configure \
|
|
298
|
-
--prefix=${nginx_binary_install_path} \
|
|
299
298
|
--with-http_ssl_module \
|
|
300
299
|
--with-http_v2_module \
|
|
301
300
|
--with-http_gzip_static_module \
|
|
302
301
|
--with-http_stub_status_module \
|
|
303
|
-
--with-stream
|
|
302
|
+
--with-stream \
|
|
303
|
+
--prefix=${nginx_binary_install_path}
|
|
304
304
|
|
|
305
305
|
make && make install
|
|
306
306
|
# 检测是否安装成功
|
package/dist/pack.js
CHANGED
|
@@ -5,6 +5,7 @@ import pc from 'picocolors';
|
|
|
5
5
|
import * as tar from 'tar';
|
|
6
6
|
import { checkEnvInfo, __work_dir, __releaseDir, __dirname, releaseConf } from './prepare.js';
|
|
7
7
|
import { logger } from './logger.js';
|
|
8
|
+
import { sleep } from './utils.js';
|
|
8
9
|
import 'yaml';
|
|
9
10
|
import 'execa';
|
|
10
11
|
import 'node:url';
|
|
@@ -83,9 +84,9 @@ async function pack(version) {
|
|
|
83
84
|
const zipFilePath = resolve(__releaseDir, zipFileName);
|
|
84
85
|
await genTarPkg(__releaseDir, projectName, zipFilePath);
|
|
85
86
|
logger.success(`done to pack ${pc.green(`${zipFileName} at: ${__releaseDir}`)}`);
|
|
86
|
-
await
|
|
87
|
+
await sleep(1e3);
|
|
87
88
|
if (fs.existsSync(projectDir)) {
|
|
88
|
-
fs.rmSync(projectDir, { recursive: true, force: true });
|
|
89
|
+
fs.rmSync(projectDir, { recursive: true, force: true, maxRetries: 5, retryDelay: 1e3 });
|
|
89
90
|
}
|
|
90
91
|
return {
|
|
91
92
|
version,
|
package/dist/publish.js
CHANGED
|
@@ -9,6 +9,7 @@ import { Gitlab } from '@gitbeaker/rest';
|
|
|
9
9
|
import { releaseConf, __releaseDir } from './prepare.js';
|
|
10
10
|
import { logger } from './logger.js';
|
|
11
11
|
import { execa, $ } from 'execa';
|
|
12
|
+
import { sleep } from './utils.js';
|
|
12
13
|
import 'yaml';
|
|
13
14
|
import 'picocolors';
|
|
14
15
|
|
|
@@ -231,7 +232,8 @@ async function publish(params) {
|
|
|
231
232
|
await api.ReleaseLinks.create(id, version, pkgName, `${host}${tarUploads.full_path}`, { linkType: "package" });
|
|
232
233
|
await api.ReleaseLinks.create(id, version, md5FileName, `${host}${md5Uploads.full_path}`, { linkType: "other" });
|
|
233
234
|
await Promise.all(docUploads.map((doc) => api.ReleaseLinks.create(id, version, doc.alt, `${host}${doc.full_path}`, { linkType: "other" })));
|
|
234
|
-
|
|
235
|
+
await sleep(1e3);
|
|
236
|
+
fs.rmSync(assetFile, { force: true, maxRetries: 3, retryDelay: 1e3 });
|
|
235
237
|
logger.success(`Successfully released at: ${res._links.self} `);
|
|
236
238
|
} catch (error) {
|
|
237
239
|
logger.error("\u{1F680} ~ file: publish.js ~ error:");
|
package/dist/release.js
CHANGED
package/dist/utils.js
ADDED