mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-29 20:44:05 +00:00
chore(create): bump to 1.0.3, fix npm bin and publish files
Raise version above registry 1.0.2, set bin to dist/cli.js, and limit npm files to dist/cli.js and dist/examples.json. Made-with: Cursor
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#
|
||||
# Release:
|
||||
# A) Manual: Actions → "Publish create-antd-admin" → Run workflow
|
||||
# B) Tag: git tag create-antd-admin-v1.0.0 && git push origin create-antd-admin-v1.0.0
|
||||
# B) Tag: git tag create-antd-admin-v1.0.3 && git push origin create-antd-admin-v1.0.3
|
||||
# (tag suffix must match packages/create/package.json "version")
|
||||
|
||||
name: Publish create-antd-admin
|
||||
|
||||
@@ -74,8 +74,8 @@ CI workflow: `.github/workflows/publish-create-antd-admin.yml` in the monorepo (
|
||||
1. Add repository secret **`NPM_TOKEN`** (npm automation or granular token with publish permission for `create-antd-admin`).
|
||||
2. Bump **`version`** in this directory’s `package.json`, commit, then either:
|
||||
- **Actions → “Publish create-antd-admin” → Run workflow**, or
|
||||
- Push tag **`create-antd-admin-v<version>`** (e.g. `create-antd-admin-v1.0.0` must match `package.json` version `1.0.0`).
|
||||
3. Push a matching **`v<version>`** tag on the monorepo (e.g. `v1.0.0`) if users rely on the default template ref `v${version}` from the CLI.
|
||||
- Push tag **`create-antd-admin-v<version>`** (e.g. `create-antd-admin-v1.0.3` must match `package.json` version `1.0.3`).
|
||||
3. Push a matching **`v<version>`** tag on the monorepo (e.g. `v1.0.3`) if users rely on the default template ref `v${version}` from the CLI.
|
||||
|
||||
If **provenance** publish fails, remove `"provenance": true` from `publishConfig` in `package.json` or adjust token / org policy per [npm provenance docs](https://docs.npmjs.com/generating-provenance-statements).
|
||||
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"name": "create-antd-admin",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.3",
|
||||
"description": "Create an Antd Admin app from official examples",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"create-antd-admin": "./dist/cli.js"
|
||||
"create-antd-admin": "dist/cli.js"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
"dist/cli.js",
|
||||
"dist/examples.json"
|
||||
],
|
||||
"scripts": {
|
||||
"prepublishOnly": "pnpm run build",
|
||||
|
||||
Reference in New Issue
Block a user