Skip to content

Commit cf41b95

Browse files
committed
fix(ci): use npx ng for Angular CLI commands
1 parent 9d62787 commit cf41b95

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ jobs:
6464
npx @angular/cli@18 new test-app-18 --defaults
6565
cd test-app-18
6666
npm link angular-cli-ghpages
67-
ng add angular-cli-ghpages
68-
ng deploy
67+
npx ng add angular-cli-ghpages
68+
npx ng deploy
6969
git branch -a | grep gh-pages
7070
echo "Angular 18: build + deploy successful"
7171
@@ -75,8 +75,8 @@ jobs:
7575
npx @angular/cli@19 new test-app-19 --defaults
7676
cd test-app-19
7777
npm link angular-cli-ghpages
78-
ng add angular-cli-ghpages
79-
ng deploy
78+
npx ng add angular-cli-ghpages
79+
npx ng deploy
8080
git branch -a | grep gh-pages
8181
echo "Angular 19: build + deploy successful"
8282
@@ -86,8 +86,8 @@ jobs:
8686
npx @angular/cli@20 new test-app-20 --defaults
8787
cd test-app-20
8888
npm link angular-cli-ghpages
89-
ng add angular-cli-ghpages
90-
ng deploy
89+
npx ng add angular-cli-ghpages
90+
npx ng deploy
9191
git branch -a | grep gh-pages
9292
echo "Angular 20: build + deploy successful"
9393
@@ -97,7 +97,7 @@ jobs:
9797
npx @angular/cli@21 new test-app-21 --defaults
9898
cd test-app-21
9999
npm link angular-cli-ghpages
100-
ng add angular-cli-ghpages
101-
ng deploy
100+
npx ng add angular-cli-ghpages
101+
npx ng deploy
102102
git branch -a | grep gh-pages
103103
echo "Angular 21: build + deploy successful"

0 commit comments

Comments
 (0)