Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
chore: make changes release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
batrdn committed Mar 2, 2024
1 parent 4f6fe1f commit 472b5a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 1 addition & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
5 changes: 0 additions & 5 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@
}
},
"targetDefaults": {
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectName}"
}
},
"build": {
"cache": true,
"dependsOn": ["^build"]
Expand Down

0 comments on commit 472b5a5

Please sign in to comment.