Skip to content

Commit

Permalink
feat(core): Use lerna prepublishOnly version npm publish and use the … (
Browse files Browse the repository at this point in the history
  • Loading branch information
stocaaro authored May 1, 2023
1 parent be00e7c commit c682c5e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
8 changes: 1 addition & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1592,17 +1592,11 @@ jobs:
- amplify-ssh-deps-{{ .Branch }}
- amplify-ssh-deps
- run:
name: 'Update library version'
name: 'Update API documentation'
command: |
git config --global user.email $GITHUB_EMAIL
git config --global user.name $GITHUB_USER
git pull origin release
yarn workspace @aws-amplify/core build
git add ./packages/core/src/Platform/version.ts
git commit -m "chore(release): update version.ts [ci skip]"
- run:
name: 'Update API documentation'
command: |
yarn run docs
git add ./docs/api/
git commit -m "chore(release): update API docs [ci skip]"
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ package-lock.json
packages/*/.watchmanconfig
dual-publish-tmp

### Version file - core build artifact
packages/core/src/Platform/version.ts

### Gradle ###
.gradle/
local.properties
Expand Down
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@
"build:cjs:watch": "node ./build es5 --watch",
"build:esm:watch": "rimraf lib-esm && node ./build es6 --watch",
"build": "npm run clean && npm run generate-version && npm run build:esm && npm run build:cjs",
"generate-version": "genversion src/Platform/version.ts --es6 --semi",
"generate-version": "genversion src/Platform/version.ts --es6 --semi --source ../aws-amplify",
"clean": "npm run clean:size && rimraf lib-esm lib dist",
"clean:size": "rimraf dual-publish-tmp tmp*",
"format": "echo \"Not implemented\"",
"lint": "tslint 'src/**/*.ts' && npm run ts-coverage",
"prepublishOnly": "npm run build",
"ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 76.41"
},
"react-native": {
Expand Down
2 changes: 0 additions & 2 deletions packages/core/src/Platform/version.ts

This file was deleted.

0 comments on commit c682c5e

Please sign in to comment.