diff --git a/.circleci/config.yml b/.circleci/config.yml index 2e2a94d5944..d9e302b20cc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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]" diff --git a/.gitignore b/.gitignore index ebf4d950ae4..ea82d0b8e71 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/packages/core/package.json b/packages/core/package.json index 1e0c0567bec..63dd9515b5d 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -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": { diff --git a/packages/core/src/Platform/version.ts b/packages/core/src/Platform/version.ts deleted file mode 100644 index 1fff5321795..00000000000 --- a/packages/core/src/Platform/version.ts +++ /dev/null @@ -1,2 +0,0 @@ -// generated by genversion -export const version = '5.1.13';