diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70d576e..1ca50e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,5 +36,7 @@ jobs: - run: | echo "BASE: ${{ env.NX_BASE }}" echo "HEAD: ${{ env.NX_HEAD }}" - - name: Create build + - name: Build affected packages run: yarn nx affected -t build --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} + - name: Version affected packages + run: yarn nx affected -t version --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 37d832b..9955e42 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -35,7 +35,8 @@ "access": "public" }, "scripts": { - "build": "rimraf dist && tsc" + "build": "rimraf dist && tsc", + "version": "yarn nx release version" }, "peerDependencies": { "eslint": ">=7.x", diff --git a/packages/jest-config/package.json b/packages/jest-config/package.json index 9966be1..ce1f240 100644 --- a/packages/jest-config/package.json +++ b/packages/jest-config/package.json @@ -20,6 +20,7 @@ }, "scripts": { "build": "rimraf dist && tsc", + "version": "yarn nx release version", "lint": "eslint src/ --ext .ts,.tsx --max-warnings 0", "lint:fix": "eslint --fix src/ --ext .ts,.tsx --max-warnings 0", "test:watch": "jest --watch" diff --git a/packages/rest-client/package.json b/packages/rest-client/package.json index bbcd43d..64a4373 100644 --- a/packages/rest-client/package.json +++ b/packages/rest-client/package.json @@ -15,6 +15,7 @@ }, "scripts": { "build": "rimraf dist && tsc", + "version": "yarn nx release version", "lint": "eslint src/ --ext .ts,.tsx --max-warnings 0", "test:watch": "jest --watch" } diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.json index b5a0b5a..9c31dfa 100644 --- a/packages/tsconfig/package.json +++ b/packages/tsconfig/package.json @@ -11,5 +11,8 @@ "base.json", "react-app.json", "react-library.json" - ] + ], + "scripts": { + "version": "yarn nx release version" + } }