Skip to content

Commit a8ba438

Browse files
committed
fix: update workflow release version (#290)
1 parent fef6199 commit a8ba438

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
5454
run: npm ci --no-audit --no-progress
5555

5656
# We build our code base
57-
- name: Run npm affected:build
58-
run: npm run build
57+
- name: Run nx build
58+
run: npx nx build
5959

6060
# We build our code base
6161
- name: Configure git
@@ -64,8 +64,8 @@ jobs:
6464
git config --local user.email '[email protected]'
6565
6666
# We run our version script
67-
- name: Run npm release
68-
run: npm run workspace:release -- --base latest
67+
- name: nx run workspace:version
68+
run: npx nx run workspace:version --base latest
6969

7070
- name: Push changes
7171
uses: ad-m/github-push-action@master
@@ -75,13 +75,12 @@ jobs:
7575
tags: true
7676

7777
# We publish our release
78-
- name: Run npm affected:publish
78+
- name: run npm affected:publish
7979
env:
8080
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8181
# Publish will try on all the packages
8282
# Wait to see https://github.com/jscutlery/semver/issues/167
83-
run:
84-
nx build && nx run-many --target publish --all --base latest || true
83+
run: npx nx run-many --target publish --all --base latest
8584

8685
# Set the matrix apps that have been affected by all the changes
8786
- name: Affected apps output

0 commit comments

Comments
 (0)