diff --git a/README.md b/README.md index 856dec559..d843d1386 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,9 @@ Run `yarn build` to build the project. The build artifacts will be stored in the - Run `git checkout -b release/X.Y.Z` - Update version in `projects/swimlane/ngx-ui/package.json`. - Update changelog in `projects/swimlane/ngx-ui/CHANGELOG.md` +- Run `yarn package` to build the package - Run `git commit -am "(release): X.Y.Z"` - Run `git tag X.Y.Z` - Run `git push origin HEAD --tags` -- Run `npm run publish:lib` +- Run `yarn publish` - Submit PR diff --git a/package.json b/package.json index ce970a7c3..9bfd0b63a 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,7 @@ "build:schematics": "tsc -p ./projects/swimlane/ngx-ui-schematics/tsconfig.json", "build:schematics:dev": "tsc -p ./projects/swimlane/ngx-ui-schematics/tsconfig.json --watch", "copy-schematics": "cpx ./projects/swimlane/ngx-ui-schematics/src/collection.json ./dist/swimlane/ngx-ui-schematics/", - "copy-files": "cpx ./README.md ./dist/swimlane/ngx-ui/ && cpx LICENSE dist/swimlane/ngx-ui/", - "package": "yarn build:lib", + "copy-files": "cpx ./README.md ./dist/swimlane/ngx-ui/ && cpx LICENSE dist/swimlane/ngx-ui/ && cpx ./projects/swimlane/ngx-ui/CHANGELOG.md dist/swimlane/ngx-ui/", "test": "yarn test:prettier && yarn test:lint && yarn test:unit && yarn test:integration", "test:prettier": "prettier --check \"{src,projects,cypress}/**/*.{js,ts,scss,css,md,json}\"", "test:lint": "ng lint", @@ -30,11 +29,11 @@ "watch:unit": "TZ=America/Los_Angeles ng test @swimlane/ngx-ui --watch --ts-config tsconfig.spec.json", "cypress:run": "TZ=America/Los_Angeles cypress run", "cypress:open": "TZ=America/Los_Angeles cypress open", + "package": "yarn build:lib", "predeploy": "yarn build:lib && yarn build:deploy", "deploy": "angular-cli-ghpages --dir ./dist/ngx-ui --name=Swimlane --email=developer@swimlane.com", "prepublish:lib": "yarn package", - "publish:lib": "npm publish ./dist/swimlane/ngx-ui --ignore-scripts", - "publish:lib:beta": "npm publish ./dist/swimlane/ngx-ui --ignore-scripts --tag beta", + "publish": "npm publish ./dist/swimlane/ngx-ui --ignore-scripts", "prepack": "yarn package", "pack": "npm pack ./dist/swimlane/ngx-ui", "prepare": "husky install" @@ -145,4 +144,4 @@ "yarn": "4.5.1" }, "packageManager": "yarn@4.5.1" -} +} \ No newline at end of file