@theholocron/cli 2.0.0-alpha.14 → 2.0.0-alpha.16

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 (2) hide show
  1. package/dist/cli.mjs +16 -2
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -1085,6 +1085,13 @@ on: # yamllint disable-line rule:truthy
1085
1085
  type: boolean
1086
1086
  required: false
1087
1087
  default: true
1088
+ secrets:
1089
+ SYNC_TOKEN:
1090
+ description: >
1091
+ Optional PAT with Contents write access. Required when the default
1092
+ branch is protected by a ruleset — github.token cannot push through
1093
+ rulesets, but a PAT with admin bypass can. Falls back to github.token.
1094
+ required: false
1088
1095
 
1089
1096
  jobs:
1090
1097
  release:
@@ -1105,7 +1112,10 @@ jobs:
1105
1112
  name: Checkout repository
1106
1113
  with:
1107
1114
  fetch-depth: 0
1108
- token: \${{ github.token }}
1115
+ # Use SYNC_TOKEN when available — git push (tags, release commits)
1116
+ # uses the checkout credential, not GITHUB_TOKEN env var. The
1117
+ # built-in github.token cannot push through branch protection rulesets.
1118
+ token: \${{ secrets.SYNC_TOKEN || github.token }}
1109
1119
 
1110
1120
  - uses: theholocron/.github/.github/actions/setup@main
1111
1121
  name: Setup
@@ -1124,7 +1134,11 @@ jobs:
1124
1134
  - run: npx semantic-release
1125
1135
  name: Release
1126
1136
  env:
1127
- GITHUB_TOKEN: \${{ github.token }}
1137
+ # Prefer SYNC_TOKEN (a PAT with Contents write) when available —
1138
+ # the built-in github.token cannot push to protected default branches
1139
+ # because rulesets block non-PAT pushes. Falls back to github.token
1140
+ # for repos without branch protection.
1141
+ GITHUB_TOKEN: \${{ secrets.SYNC_TOKEN || github.token }}
1128
1142
  NPM_CONFIG_PROVENANCE: true
1129
1143
  `,
1130
1144
  review: `\
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "2.0.0-alpha.14",
3
+ "version": "2.0.0-alpha.16",
4
4
  "description": "The Holocron CLI — a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "homepage": "https://github.com/theholocron/holocron/tree/main/packages/cli#readme",
6
6
  "bugs": "https://github.com/theholocron/holocron/issues",