Skip to content

Merge pull request #91 from BipanKishore/CICD-publish #1

Merge pull request #91 from BipanKishore/CICD-publish

Merge pull request #91 from BipanKishore/CICD-publish #1

Workflow file for this run

name: Build
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: |
npm install
- name: Lint/EsLint
run: |
npm run lint
- name: Build
run: |
npm run prod
- name: Component Testing
run: |
npm test
- name: Check Coverage
run: |
npm run coverage
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: NPM Publish
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}