Skip to content

Commit 53a4ca6

Browse files
committed
feat(cicd): updates GitHub actions workflows
1 parent a6b2f01 commit 53a4ca6

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Build and Test Project
22

33
on:
44
push:
@@ -26,7 +26,7 @@ jobs:
2626
- name: Format check
2727
run: npm run format:check
2828
- name: Build
29-
run: npm run build --configuration=production
29+
run: npm run build --configuration=production && npm run build:ngx-cookie-service-ssr --configuration=production
3030
- name: Test
3131
run: npm run test --configuration=ci
3232
env:

.github/workflows/npm_publish.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to NPM
1+
name: Publish ngx-cookie-service to NPM
22
on:
33
push:
44
### Publish on new tag release
@@ -12,12 +12,10 @@ jobs:
1212
- uses: actions/setup-node@v1
1313
with:
1414
node-version: 14
15-
- name: Install Angular CLI
16-
run: npm install -g @angular/cli @angular/core
1715
- name: Install NPM Dependencies
18-
run: npm ci --force
16+
run: npm i --force
1917
- name: Build project
20-
run: ng build --configuration production --project=ngx-cookie-service
18+
run: npm run build:ngx-cookie-service-ssr --configuration=production
2119
- name: Publish to NPM
2220
uses: JS-DevTools/npm-publish@v1
2321
with:

.github/workflows/npm_publish_ssr.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to NPM
1+
name: Publish ngx-cookie-service-ssr to NPM
22
on:
33
push:
44
### Publish on new tag release
@@ -12,12 +12,10 @@ jobs:
1212
- uses: actions/setup-node@v1
1313
with:
1414
node-version: 14
15-
- name: Install Angular CLI
16-
run: npm install -g @angular/cli @angular/core
1715
- name: Install NPM Dependencies
18-
run: npm ci --force
16+
run: npm i --force
1917
- name: Build project
20-
run: ng build --configuration production --project=ngx-cookie-service-ssr
18+
run: npm run build --configuration production --project=ngx-cookie-service-ssr
2119
- name: Publish to NPM
2220
uses: JS-DevTools/npm-publish@v1
2321
with:

0 commit comments

Comments
 (0)