@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.
Files changed (37) hide show
  1. package/README.md +183 -2
  2. package/dist/GitRepository-VTAWT6j4.mjs +151 -0
  3. package/dist/GitRepository-VTAWT6j4.mjs.map +1 -0
  4. package/dist/bin/source-pack.d.mts +1 -0
  5. package/dist/bin/source-pack.mjs +3038 -0
  6. package/dist/bin/source-pack.mjs.map +1 -0
  7. package/dist/buildSourcePack-CaaMZ_tw.mjs +11280 -0
  8. package/dist/buildSourcePack-CaaMZ_tw.mjs.map +1 -0
  9. package/dist/buildSourcePack-DIp8G_uL.mjs +3 -0
  10. package/dist/constants-DkiLCuIK.mjs +25 -0
  11. package/dist/constants-DkiLCuIK.mjs.map +1 -0
  12. package/dist/defaults-BJs7a37e.mjs +52 -0
  13. package/dist/defaults-BJs7a37e.mjs.map +1 -0
  14. package/dist/index.d.mts +397 -0
  15. package/dist/index.mjs +73 -0
  16. package/dist/index.mjs.map +1 -0
  17. package/dist/initConfig-ByGsbShR.mjs +185 -0
  18. package/dist/initConfig-ByGsbShR.mjs.map +1 -0
  19. package/dist/loadConfig-CNrL90dq.mjs +224 -0
  20. package/dist/loadConfig-CNrL90dq.mjs.map +1 -0
  21. package/dist/logger-D1XGzzjT.mjs +15 -0
  22. package/dist/logger-D1XGzzjT.mjs.map +1 -0
  23. package/dist/packageVersion-B0749hF6.mjs +4646 -0
  24. package/dist/packageVersion-B0749hF6.mjs.map +1 -0
  25. package/dist/projectIdentity-F97vs1H-.mjs +3331 -0
  26. package/dist/projectIdentity-F97vs1H-.mjs.map +1 -0
  27. package/dist/publishSourcePack-Dj1cdWfT.mjs +3 -0
  28. package/dist/publishSourcePack-xNr9RBgv.mjs +296 -0
  29. package/dist/publishSourcePack-xNr9RBgv.mjs.map +1 -0
  30. package/dist/token-DMtao22Y.mjs +59 -0
  31. package/dist/token-DMtao22Y.mjs.map +1 -0
  32. package/dist/token-util-C3JYrW4-.mjs +498 -0
  33. package/dist/token-util-C3JYrW4-.mjs.map +1 -0
  34. package/dist/token-util-CbjlbIno.mjs +5 -0
  35. package/package.json +45 -3
  36. package/templates/circleci-job.yml +39 -0
  37. 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