@smoothbricks/cli 0.10.12 → 0.10.13

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.
@@ -258,6 +258,8 @@ function renderE2eDeploymentJob(options) {
258
258
  ${renderRunsOnLine(options.runsOn)}
259
259
  timeout-minutes: 15
260
260
  if: \${{ needs.main.result == 'success' && needs.main.outputs.deployment-stage != '' }}
261
+ env:
262
+ GH_TOKEN: \${{ github.token }}
261
263
  steps:
262
264
  # Step 1: GitHub adds "Set up job" automatically
263
265
  # Step 2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smoothbricks/cli",
3
- "version": "0.10.12",
3
+ "version": "0.10.13",
4
4
  "type": "module",
5
5
  "description": "SmoothBricks monorepo automation CLI",
6
6
  "bin": {
@@ -83,6 +83,9 @@ describe('CI workflow definition', () => {
83
83
  "if: ${{ needs.main.result == 'success' && needs.main.outputs.deployment-stage != '' }}",
84
84
  );
85
85
  expect(rendered).toContain('timeout-minutes: 15');
86
+ expect(rendered).toContain(
87
+ "if: ${{ needs.main.result == 'success' && needs.main.outputs.deployment-stage != '' }}\n env:\n GH_TOKEN: ${{ github.token }}\n steps:",
88
+ );
86
89
  expect(rendered).toContain('# prettier-ignore\n run: smoo github-ci nx-smart --target e2e-deployment');
87
90
  expect(rendered).toContain(
88
91
  'smoo github-ci nx-smart --target e2e-deployment --mode run-many --stage "${{ needs.main.outputs.deployment-stage }}" --name "Deployment E2E" --step 4',
@@ -300,6 +300,8 @@ function renderE2eDeploymentJob(options: CiWorkflowDefinitionOptions): string {
300
300
  ${renderRunsOnLine(options.runsOn)}
301
301
  timeout-minutes: 15
302
302
  if: \${{ needs.main.result == 'success' && needs.main.outputs.deployment-stage != '' }}
303
+ env:
304
+ GH_TOKEN: \${{ github.token }}
303
305
  steps:
304
306
  # Step 1: GitHub adds "Set up job" automatically
305
307
  # Step 2