diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 270a4fd..6778473 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,15 +27,15 @@ jobs: run: npm install - name: Format run: | - UNFORMATTED_FILES=$(npx nx format:check) + UNFORMATTED_FILES=$(npm run format:check) if [ -n "$UNFORMATTED_FILES" ]; then echo "Unformatted files found:" echo "$UNFORMATTED_FILES" exit 1 fi - name: Lint - run: npx nx affected -t lint + run: npm run lint - name: Build - run: npx nx affected -t build + run: npm run build - name: Test - run: npx nx affected -t test + run: npm run test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a423880..20e5df4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,11 +34,7 @@ jobs: run: npx nx release --skip-publish env: GH_TOKEN: ${{ github.token }} - - name: Upload dist - uses: actions/upload-artifact@v3 - with: - name: dist - path: dist + publish: name: Publish runs-on: ubuntu-latest @@ -58,11 +54,6 @@ jobs: registry-url: https://registry.npmjs.org/ - name: Install dependencies run: npm i - - name: Download dist - uses: actions/download-artifact@v3 - with: - name: dist - path: dist - name: Release packages run: npx nx release publish env: diff --git a/nx.json b/nx.json index 9a398fe..7dc169c 100644 --- a/nx.json +++ b/nx.json @@ -31,11 +31,6 @@ } }, "targetDefaults": { - "nx-release-publish": { - "options": { - "packageRoot": "dist/{projectName}" - } - }, "build": { "cache": true, "dependsOn": ["^build"]