Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ jobs:

- name: Build packages
run: pnpm run build


- name: Authenticate to npm
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auth token written to wrong npmrc file location

High Severity

The setup-node action's registry-url option sets NPM_CONFIG_USERCONFIG to $RUNNER_TEMP/.npmrc. This causes the ~/.npmrc file created by the "Authenticate to npm" step to be ignored. Since $RUNNER_TEMP/.npmrc expects an undefined NODE_AUTH_TOKEN, package publishing fails due to missing authentication.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit fc2529a. Configure here.


- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
Expand Down
3 changes: 3 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
"vite": "^7.1.11",
"vitest": "^4.1.2"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=20.0.0"
}
Expand Down
3 changes: 3 additions & 0 deletions packages/create-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@
"optional": true
}
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=20.0.0"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
"peerDependencies": {
"@create-markdown/core": ">=2.0.0"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=20.0.0"
}
Expand Down
3 changes: 3 additions & 0 deletions packages/preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@
"optional": true
}
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=20.0.0"
}
Expand Down
3 changes: 3 additions & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
"@create-markdown/core": ">=2.0.0",
"react": ">=18.0.0"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=20.0.0"
}
Expand Down
Loading