@hellopearl/dv-gitlab 0.4.3 → 0.4.4
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/ci/slack-deploy.yml +1 -1
- package/ci/version-bump.yml +2 -2
- package/package.json +2 -2
- package/src/commands/postbuild.mjs +3 -0
package/ci/slack-deploy.yml
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
needs: []
|
|
23
23
|
before_script:
|
|
24
24
|
- apk add --no-cache git
|
|
25
|
-
- export SLACK_MESSAGE=$(npx @hellopearl/dv-gitlab release-summary 2>/dev/null || echo ":rocket: *$
|
|
25
|
+
- 'export SLACK_MESSAGE=$(npx @hellopearl/dv-gitlab release-summary 2>/dev/null || echo ":rocket: *$CI_PROJECT_NAME* deployed to *$CI_COMMIT_REF_NAME*")'
|
|
26
26
|
variables:
|
|
27
27
|
SLACK_CHANNEL: "#deployments"
|
|
28
28
|
SLACK_MESSAGE: ":rocket: *$CI_PROJECT_NAME* deployed to *$CI_COMMIT_REF_NAME*"
|
package/ci/version-bump.yml
CHANGED
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
- apk add --no-cache git
|
|
21
21
|
- git config --global user.email "ci@hellopearl.com"
|
|
22
22
|
- git config --global user.name "GitLab CI"
|
|
23
|
-
- git clone --depth=1 "https://oauth2:${GITLAB_TOKEN}@gitlab.com/${CI_PROJECT_PATH}.git" repo
|
|
23
|
+
- git clone --depth=1 -b "$VERSION_BUMP_BRANCH" "https://oauth2:${GITLAB_TOKEN}@gitlab.com/${CI_PROJECT_PATH}.git" repo
|
|
24
24
|
- cd repo
|
|
25
25
|
script:
|
|
26
26
|
- |
|
|
27
27
|
MAX_RETRIES=3
|
|
28
28
|
for i in $(seq 1 $MAX_RETRIES); do
|
|
29
|
-
git fetch origin "$VERSION_BUMP_BRANCH"
|
|
29
|
+
git fetch origin "$VERSION_BUMP_BRANCH:refs/remotes/origin/$VERSION_BUMP_BRANCH"
|
|
30
30
|
git reset --hard "origin/$VERSION_BUMP_BRANCH"
|
|
31
31
|
|
|
32
32
|
CURRENT=$(node -p "require('./package.json').version")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hellopearl/dv-gitlab",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "Unified GitLab CI tooling -- MR comments, pipeline triggers, preview env management",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"@hellopearl/dv-prettier": "*",
|
|
49
49
|
"@hellopearl/dv-test": "*"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "954585e656b4cf6e6b89e294d14a97499c82c874"
|
|
52
52
|
}
|
|
@@ -202,8 +202,11 @@ export async function postbuild() {
|
|
|
202
202
|
|
|
203
203
|
const buildCandidates = [
|
|
204
204
|
process.env.CODEBUILD_SRC_DIR && `${process.env.CODEBUILD_SRC_DIR}/build`,
|
|
205
|
+
process.env.CODEBUILD_SRC_DIR && `${process.env.CODEBUILD_SRC_DIR}/out`,
|
|
205
206
|
'build',
|
|
207
|
+
'out',
|
|
206
208
|
'dist',
|
|
209
|
+
'.next',
|
|
207
210
|
].filter(Boolean);
|
|
208
211
|
|
|
209
212
|
let buildExists = false;
|