Hold Services in Object instead of an Array #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: NPM Package | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'npm' | |
registry-url: 'https://registry.npmjs.org' | |
- name: install dependencies | |
run: npm ci | |
- name: test | |
run: npm run test | |
- name: build | |
run: npm run build | |
- name: set version | |
run: npm --no-git-tag-version version ${GITHUB_REF#refs/*/} | |
- name: publish to npmjs.com | |
if: github.event_name == 'release' | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
- name: sonar scanner | |
run: npm run sonar -- -Dsonar.login=${{ secrets.SONAR_AUTH_TOKEN }} |