Skip to content

Commit

Permalink
feat(cicd): updates GitHub actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pavankjadda committed Jun 28, 2022
1 parent a6b2f01 commit c757250
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Build and Test Project

on:
push:
Expand All @@ -20,13 +20,13 @@ jobs:
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm i --force
run: npm i --legacy-peer-deps
- name: Lint
run: npm run lint
- name: Format check
run: npm run format:check
- name: Build
run: npm run build --configuration=production
run: npm run build --configuration=production && npm run build:ngx-cookie-service-ssr --configuration=production
- name: Test
run: npm run test --configuration=ci
env:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to NPM
name: Publish ngx-cookie-service to NPM
on:
push:
### Publish on new tag release
Expand All @@ -12,12 +12,10 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 14
- name: Install Angular CLI
run: npm install -g @angular/cli @angular/core
- name: Install NPM Dependencies
run: npm ci --force
run: npm i --legacy-peer-deps
- name: Build project
run: ng build --configuration production --project=ngx-cookie-service
run: npm run build:ngx-cookie-service-ssr --configuration=production
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/npm_publish_ssr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to NPM
name: Publish ngx-cookie-service-ssr to NPM
on:
push:
### Publish on new tag release
Expand All @@ -12,12 +12,10 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 14
- name: Install Angular CLI
run: npm install -g @angular/cli @angular/core
- name: Install NPM Dependencies
run: npm ci --force
run: npm i --legacy-peer-deps
- name: Build project
run: ng build --configuration production --project=ngx-cookie-service-ssr
run: npm run build --configuration production --project=ngx-cookie-service-ssr
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
Expand Down

0 comments on commit c757250

Please sign in to comment.