You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: remove environment from canary publish job for trusted publishing
The GitHub environment name must match exactly between the workflow and
npmjs.com trusted publisher config. Since we document leaving environment
empty on npmjs.com, the workflow should not use an environment either.
Copy file name to clipboardExpand all lines: .github/PUBLISHING.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,12 +76,10 @@ Publishing logic has been moved to a dedicated `publish.yml` workflow file to su
76
76
77
77
## Manual Setup Steps
78
78
79
-
Complete these steps**before**merging the trusted publishing changes:
79
+
> ⚠️ **CRITICAL**: Complete Step 1**BEFORE**any workflow runs. The workflow will fail with `ENEEDAUTH` error if the trusted publisher is not configured first!
80
80
81
81
### Step 1: Configure Trusted Publisher on npmjs.com
82
82
83
-
> ⚠️ **Important**: This must be done BEFORE the first publish attempt with the new workflow.
84
-
85
83
1. Log in to [npmjs.com](https://www.npmjs.com) with an account that has publish access
86
84
2. Go to: https://www.npmjs.com/package/@cube-dev/ui-kit/settings
87
85
3. Scroll to the **"Trusted Publisher"** section
@@ -90,10 +88,10 @@ Complete these steps **before** merging the trusted publishing changes:
90
88
91
89
| Field | Value |
92
90
|-------|-------|
93
-
|Organization or user|`cube-js`|
91
+
|Owner|`cube-js`|
94
92
| Repository |`cube-ui-kit`|
95
93
| Workflow filename |`publish.yml`|
96
-
| Environment name |_(leave empty)_|
94
+
| Environment |_(leave empty)_|
97
95
98
96
6. Click **Save** (or the equivalent button)
99
97
@@ -160,6 +158,14 @@ Before merging the trusted publishing PR, verify:
160
158
161
159
## Troubleshooting
162
160
161
+
### `ENEEDAUTH` / "need auth" / "You need to authorize this machine" error
162
+
163
+
This is the most common error when first setting up trusted publishing:
164
+
165
+
1.**Trusted publisher not configured yet** — Go to npmjs.com and configure the trusted publisher (Step 1 above)
166
+
2.**Configuration mismatch** — Double-check that Owner, Repository, and Workflow filename match EXACTLY
167
+
3.**Environment mismatch** — If you specified an environment on npmjs.com, the workflow must use the same environment name (we leave it empty by default)
168
+
163
169
### "Unable to authenticate" error
164
170
165
171
- Verify the workflow filename matches **exactly** (`publish.yml`, not `Publish.yml`)
0 commit comments