@cmflow/source-pack 0.0.0-stage → 3.20.0
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/README.md +183 -2
- package/dist/GitRepository-VTAWT6j4.mjs +151 -0
- package/dist/GitRepository-VTAWT6j4.mjs.map +1 -0
- package/dist/bin/source-pack.d.mts +1 -0
- package/dist/bin/source-pack.mjs +3038 -0
- package/dist/bin/source-pack.mjs.map +1 -0
- package/dist/buildSourcePack-CaaMZ_tw.mjs +11280 -0
- package/dist/buildSourcePack-CaaMZ_tw.mjs.map +1 -0
- package/dist/buildSourcePack-DIp8G_uL.mjs +3 -0
- package/dist/constants-DkiLCuIK.mjs +25 -0
- package/dist/constants-DkiLCuIK.mjs.map +1 -0
- package/dist/defaults-BJs7a37e.mjs +52 -0
- package/dist/defaults-BJs7a37e.mjs.map +1 -0
- package/dist/index.d.mts +397 -0
- package/dist/index.mjs +73 -0
- package/dist/index.mjs.map +1 -0
- package/dist/initConfig-ByGsbShR.mjs +185 -0
- package/dist/initConfig-ByGsbShR.mjs.map +1 -0
- package/dist/loadConfig-CNrL90dq.mjs +224 -0
- package/dist/loadConfig-CNrL90dq.mjs.map +1 -0
- package/dist/logger-D1XGzzjT.mjs +15 -0
- package/dist/logger-D1XGzzjT.mjs.map +1 -0
- package/dist/packageVersion-B0749hF6.mjs +4646 -0
- package/dist/packageVersion-B0749hF6.mjs.map +1 -0
- package/dist/projectIdentity-F97vs1H-.mjs +3331 -0
- package/dist/projectIdentity-F97vs1H-.mjs.map +1 -0
- package/dist/publishSourcePack-Dj1cdWfT.mjs +3 -0
- package/dist/publishSourcePack-xNr9RBgv.mjs +296 -0
- package/dist/publishSourcePack-xNr9RBgv.mjs.map +1 -0
- package/dist/token-DMtao22Y.mjs +59 -0
- package/dist/token-DMtao22Y.mjs.map +1 -0
- package/dist/token-util-C3JYrW4-.mjs +498 -0
- package/dist/token-util-C3JYrW4-.mjs.map +1 -0
- package/dist/token-util-CbjlbIno.mjs +5 -0
- package/package.json +45 -3
- package/templates/circleci-job.yml +39 -0
- package/templates/gitlab-ci.yml +30 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Reusable GitLab CI template for @cmflow/source-pack.
|
|
2
|
+
#
|
|
3
|
+
# include:
|
|
4
|
+
# - remote: "https://raw.githubusercontent.com/ClubMediterranee/cmflow/master/packages/source-pack/templates/gitlab-ci.yml"
|
|
5
|
+
#
|
|
6
|
+
# source-pack:
|
|
7
|
+
# extends: .source-pack
|
|
8
|
+
# needs: ["release"] # the job that creates the tag and its release
|
|
9
|
+
# rules:
|
|
10
|
+
# - if: $CI_COMMIT_BRANCH == "production"
|
|
11
|
+
#
|
|
12
|
+
# Required CI/CD variables (masked): LITELLM_API_KEY, GITLAB_TOKEN (api scope).
|
|
13
|
+
.source-pack:
|
|
14
|
+
image: node:24
|
|
15
|
+
stage: deploy
|
|
16
|
+
allow_failure: true
|
|
17
|
+
variables:
|
|
18
|
+
SOURCE_PACK_VERSION: "latest"
|
|
19
|
+
SOURCE_PACK_TAG_PATTERN: "version-*"
|
|
20
|
+
GIT_DEPTH: 0
|
|
21
|
+
script:
|
|
22
|
+
- git fetch --force --tags origin
|
|
23
|
+
- SOURCE_PACK_TAG=$(git tag --contains "${CI_COMMIT_SHA}" --list "${SOURCE_PACK_TAG_PATTERN}" --sort=v:refname | head -n 1)
|
|
24
|
+
- '[ -n "${SOURCE_PACK_TAG}" ] || { echo "No ${SOURCE_PACK_TAG_PATTERN} tag contains ${CI_COMMIT_SHA}"; exit 1; }'
|
|
25
|
+
- npx -y "@cmflow/source-pack@${SOURCE_PACK_VERSION}" build --tag "${SOURCE_PACK_TAG}"
|
|
26
|
+
- npx -y "@cmflow/source-pack@${SOURCE_PACK_VERSION}" publish
|
|
27
|
+
artifacts:
|
|
28
|
+
when: always
|
|
29
|
+
paths:
|
|
30
|
+
- tmp/source-pack/manifest.json
|