Skip to content

ci(actions-node): set actions to the node 20 versions and set node to… #4

ci(actions-node): set actions to the node 20 versions and set node to…

ci(actions-node): set actions to the node 20 versions and set node to… #4

Workflow file for this run

name: eRecht24 NPM Package
on: [push]
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
ERECHT24_PLUGIN_KEY: ${{ secrets.ERECHT24_PLUGIN_KEY }}
jobs:
eRecht24:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
- run: npm ci
- name: Dependencies audit
run: npm audit --audit-level=high
- name: Build
run: npm run build
- name: Format check
run: npm run format:check
- name: Lint check
run: npm run lint:check
- name: Spell check
run: npm run spell:check
- name: Test
run: npm run test
- name: Coverage
run: npm run test:coverage
- name: Connect to Tailscale Network for Sonarqube
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
- name: Sonarqube scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run semantic-release