@intentius/chant-lexicon-github 0.0.24 → 0.1.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.
@@ -1,41 +1,41 @@
1
1
  {
2
2
  "algorithm": "xxhash64",
3
3
  "artifacts": {
4
- "manifest.json": "7ce52cc97afca3a0",
5
- "meta.json": "317499a992c9c274",
6
- "types/index.d.ts": "93ce391baebf2afb",
7
- "rules/missing-recommended-inputs.ts": "42f2f3b0b6c7b52c",
8
- "rules/no-raw-expressions.ts": "6359f4d3135ed351",
9
- "rules/use-typed-actions.ts": "eeedcc6145b7a132",
4
+ "manifest.json": "126af7918ff57cb7",
5
+ "meta.json": "2d1cccf3c19883a7",
6
+ "types/index.d.ts": "9d6f903cca5de1e9",
7
+ "rules/deprecated-action-version.ts": "9ec91b190557f25f",
10
8
  "rules/extract-inline-structs.ts": "646dce2eccf1fab4",
9
+ "rules/job-timeout.ts": "68f85c741c3d0ae8",
10
+ "rules/validate-concurrency.ts": "c12a1aa4ee8badb5",
11
11
  "rules/file-job-limit.ts": "7c46a302f6ba2744",
12
+ "rules/use-typed-actions.ts": "eeedcc6145b7a132",
13
+ "rules/suggest-cache.ts": "c45f7659afde2f15",
12
14
  "rules/detect-secrets.ts": "999e6c5b4e048764",
13
- "rules/deprecated-action-version.ts": "9ec91b190557f25f",
14
15
  "rules/no-hardcoded-secrets.ts": "adcdb23f0480a4b7",
15
- "rules/job-timeout.ts": "68f85c741c3d0ae8",
16
- "rules/use-condition-builders.ts": "7406215df1f79fb8",
17
- "rules/suggest-cache.ts": "c45f7659afde2f15",
18
- "rules/validate-concurrency.ts": "c12a1aa4ee8badb5",
19
16
  "rules/use-matrix-builder.ts": "6b1c0ebf43378805",
20
- "rules/gha020.ts": "36ef5e141524bab0",
17
+ "rules/missing-recommended-inputs.ts": "42f2f3b0b6c7b52c",
18
+ "rules/use-condition-builders.ts": "7406215df1f79fb8",
19
+ "rules/no-raw-expressions.ts": "6359f4d3135ed351",
21
20
  "rules/gha017.ts": "ff1c08fdedf83afa",
22
- "rules/gha027.ts": "6071aedb178c90a8",
21
+ "rules/gha018.ts": "46acbe27d4c0c817",
22
+ "rules/gha026.ts": "5ace32df6cb850af",
23
23
  "rules/gha019.ts": "d9184093f36ac167",
24
+ "rules/gha023.ts": "2d00140d63591c9",
25
+ "rules/gha027.ts": "6071aedb178c90a8",
26
+ "rules/yaml-helpers.ts": "df426df288c175c9",
24
27
  "rules/gha024.ts": "ed75a2900c8bf12d",
25
- "rules/gha009.ts": "df140c0cac573bc4",
26
- "rules/gha026.ts": "5ace32df6cb850af",
28
+ "rules/gha025.ts": "d196899f490521ba",
29
+ "rules/gha006.ts": "baca27402ba18d",
27
30
  "rules/gha028.ts": "9c1ba1eb9a93d8b6",
28
31
  "rules/gha022.ts": "41038ee697a497d1",
29
- "rules/gha018.ts": "46acbe27d4c0c817",
30
- "rules/yaml-helpers.ts": "df426df288c175c9",
31
32
  "rules/gha011.ts": "105e2d4faeaa9977",
32
- "rules/gha025.ts": "d196899f490521ba",
33
- "rules/gha006.ts": "baca27402ba18d",
34
- "rules/gha023.ts": "2d00140d63591c9",
33
+ "rules/gha020.ts": "36ef5e141524bab0",
34
+ "rules/gha009.ts": "df140c0cac573bc4",
35
35
  "rules/gha021.ts": "da7e2491926d1817",
36
36
  "skills/chant-github.md": "dc14037edaace2af",
37
37
  "skills/chant-github-patterns.md": "7678ef5c6b4b9bdf",
38
38
  "skills/chant-github-security.md": "f3fcfcd84475b73c"
39
39
  },
40
- "composite": "e27f8e12ef9f5a4"
40
+ "composite": "296d95ea466ee140"
41
41
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github",
3
- "version": "0.0.24",
3
+ "version": "0.1.4",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "GitHub",
6
6
  "intrinsics": [
package/dist/meta.json CHANGED
@@ -17,7 +17,12 @@
17
17
  "Environment": {
18
18
  "resourceType": "GitHub::Actions::Environment",
19
19
  "kind": "property",
20
- "lexicon": "github"
20
+ "lexicon": "github",
21
+ "constraints": {
22
+ "deployment": {
23
+ "default": true
24
+ }
25
+ }
21
26
  },
22
27
  "Job": {
23
28
  "resourceType": "GitHub::Actions::Job",
@@ -40,6 +40,8 @@ export declare class Environment {
40
40
  constructor(props: {
41
41
  /** The name of the environment configured in the repo. */
42
42
  name: string;
43
+ /** Whether to create a deployment for this job. Setting to false lets the job use environment secrets and variables without creating a deployment record. Wait timers and required reviewers still apply. */
44
+ deployment?: boolean | string;
43
45
  /** A deployment URL */
44
46
  url?: string;
45
47
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-github",
3
- "version": "0.0.24",
3
+ "version": "0.1.4",
4
4
  "description": "GitHub Actions lexicon for chant — declarative IaC in TypeScript",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://intentius.io/chant",
@@ -42,10 +42,11 @@
42
42
  "docs": "bun run src/codegen/docs-cli.ts",
43
43
  "prepack": "bun run generate && bun run bundle && bun run validate"
44
44
  },
45
- "dependencies": {
46
- "@intentius/chant": "0.0.22"
47
- },
48
45
  "devDependencies": {
46
+ "@intentius/chant": "0.1.4",
49
47
  "typescript": "^5.9.3"
48
+ },
49
+ "peerDependencies": {
50
+ "@intentius/chant": "^0.1.0"
50
51
  }
51
52
  }
@@ -396,11 +396,11 @@ The \`github\` and \`runner\` objects provide typed access to context properties
396
396
  \`\`\`typescript
397
397
  import { github, runner } from "@intentius/chant-lexicon-github";
398
398
 
399
- github.ref // ${{ github.ref }}
400
- github.sha // ${{ github.sha }}
401
- github.actor // ${{ github.actor }}
402
- runner.os // ${{ runner.os }}
403
- runner.arch // ${{ runner.arch }}
399
+ github.ref // \${{ github.ref }}
400
+ github.sha // \${{ github.sha }}
401
+ github.actor // \${{ github.actor }}
402
+ runner.os // \${{ runner.os }}
403
+ runner.arch // \${{ runner.arch }}
404
404
  \`\`\`
405
405
 
406
406
  See [Variables](/chant/lexicons/github/variables/) for the full reference table.
@@ -412,13 +412,13 @@ Access dynamic context values — secrets, matrix, step outputs, job outputs, in
412
412
  \`\`\`typescript
413
413
  import { secrets, matrix, steps, needs, inputs, vars, env } from "@intentius/chant-lexicon-github";
414
414
 
415
- secrets("NPM_TOKEN") // ${{ secrets.NPM_TOKEN }}
416
- matrix("node-version") // ${{ matrix.node-version }}
417
- steps("build").outputs("path") // ${{ steps.build.outputs.path }}
418
- needs("build").outputs("version") // ${{ needs.build.outputs.version }}
419
- inputs("environment") // ${{ inputs.environment }}
420
- vars("API_URL") // ${{ vars.API_URL }}
421
- env("NODE_ENV") // ${{ env.NODE_ENV }}
415
+ secrets("NPM_TOKEN") // \${{ secrets.NPM_TOKEN }}
416
+ matrix("node-version") // \${{ matrix.node-version }}
417
+ steps("build").outputs("path") // \${{ steps.build.outputs.path }}
418
+ needs("build").outputs("version") // \${{ needs.build.outputs.version }}
419
+ inputs("environment") // \${{ inputs.environment }}
420
+ vars("API_URL") // \${{ vars.API_URL }}
421
+ env("NODE_ENV") // \${{ env.NODE_ENV }}
422
422
  \`\`\`
423
423
 
424
424
  ## Condition helpers
@@ -40,6 +40,8 @@ export declare class Environment {
40
40
  constructor(props: {
41
41
  /** The name of the environment configured in the repo. */
42
42
  name: string;
43
+ /** Whether to create a deployment for this job. Setting to false lets the job use environment secrets and variables without creating a deployment record. Wait timers and required reviewers still apply. */
44
+ deployment?: boolean | string;
43
45
  /** A deployment URL */
44
46
  url?: string;
45
47
  });
@@ -17,7 +17,12 @@
17
17
  "Environment": {
18
18
  "resourceType": "GitHub::Actions::Environment",
19
19
  "kind": "property",
20
- "lexicon": "github"
20
+ "lexicon": "github",
21
+ "constraints": {
22
+ "deployment": {
23
+ "default": true
24
+ }
25
+ }
21
26
  },
22
27
  "Job": {
23
28
  "resourceType": "GitHub::Actions::Job",