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

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 +12 -1
  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:
@@ -1124,7 +1131,11 @@ jobs:
1124
1131
  - run: npx semantic-release
1125
1132
  name: Release
1126
1133
  env:
1127
- GITHUB_TOKEN: \${{ github.token }}
1134
+ # Prefer SYNC_TOKEN (a PAT with Contents write) when available —
1135
+ # the built-in github.token cannot push to protected default branches
1136
+ # because rulesets block non-PAT pushes. Falls back to github.token
1137
+ # for repos without branch protection.
1138
+ GITHUB_TOKEN: \${{ secrets.SYNC_TOKEN || github.token }}
1128
1139
  NPM_CONFIG_PROVENANCE: true
1129
1140
  `,
1130
1141
  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.15",
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",