@cmflow/cli 3.4.0-alpha.3 → 3.4.0-alpha.5

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 CHANGED
@@ -144,6 +144,18 @@ export default defineConfig({
144
144
 
145
145
  `push-release` pushes the branch and release tag first. `publish-packages` publishes only non-private generated artifacts. It supports npmjs, GitHub Packages and additional registries; `trustedPublishing` uses npm’s OIDC-based trusted publishing flow. During a dry run, packages are packed but never published.
146
146
 
147
+ For CircleCI, export the OIDC token in each job that runs a real release:
148
+
149
+ ```yaml
150
+ - run:
151
+ name: Cm Release
152
+ command: |
153
+ export NPM_ID_TOKEN=$(circleci run oidc get --claims '{"aud":"npm:registry.npmjs.org"}')
154
+ yarn release
155
+ ```
156
+
157
+ Each npm package must also be configured with a CircleCI trusted publisher and allow the `npm publish` action. The Organization ID, Project ID, Pipeline definition ID and VCS origin configured on npm must match the CircleCI project exactly. [npm’s CircleCI trusted publishing guide](https://docs.npmjs.com/trusted-publishers/) details the required values.
158
+
147
159
  ## Atlas
148
160
 
149
161
  API-to-backend catalogue tooling is published separately as [`@cmflow/atlas`](../atlas). Its project configuration is `atlas.config.ts`; it does not belong in this repository or in this CLI package.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmflow/cli",
3
- "version": "3.4.0-alpha.3",
3
+ "version": "3.4.0-alpha.5",
4
4
  "description": "An awesome Git Flow",
5
5
  "license": "MIT",
6
6
  "author": "camfou",
package/tsdown.config.ts DELETED
@@ -1,54 +0,0 @@
1
- import { globbySync } from "globby";
2
- import { defineConfig } from "tsdown";
3
- import pkg from "./package.json" with { type: "json" };
4
-
5
- const files = globbySync(["src/semantic/core/**/*.ts", "src/semantic/docker/**/*.ts", "src/datasource/rules/*.ts"], {
6
- cwd: process.cwd(),
7
- ignore: ["**/*.spec.ts", "**/*.test.ts"]
8
- }).reduce((acc, file) => {
9
- return {
10
- ...acc,
11
- [file.replace(/\.(js|ts)$/, "")]: file
12
- };
13
- }, {});
14
-
15
- const defineOpts = {
16
- __VERSION__: JSON.stringify(pkg.version)
17
- };
18
-
19
- export default defineConfig([
20
- {
21
- define: defineOpts,
22
- entry: {
23
- "bin/cm": "src/bin/cm.ts"
24
- },
25
- format: "esm",
26
- outDir: "dist",
27
- clean: false,
28
- dts: false
29
- },
30
- {
31
- define: defineOpts,
32
- entry: {
33
- "bin/cmrelease": "src/bin/cm-release.ts"
34
- },
35
- format: "esm",
36
- outDir: "dist",
37
- clean: false,
38
- dts: false
39
- // plugins: [shebang()]
40
- },
41
- {
42
- define: defineOpts,
43
- entry: {
44
- "src/index": "src/index.ts",
45
- ...files
46
- },
47
- format: "esm",
48
- outDir: "dist",
49
- clean: true,
50
- dts: false,
51
- sourcemap: true,
52
- minify: true
53
- }
54
- ]);