0.21.1 #63
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: CRUD nodejs client - CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ["18"] | |
name: Node ${{ matrix.node }} Testing | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
registry-url: "https://registry.npmjs.org" | |
cache: "npm" | |
- name: NPM Install | |
run: npm ci | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Lint | |
run: npm run lint | |
- name: NPM Test | |
run: npm test | |
- name: Build lib | |
run: npm run build | |
- name: NPM Audit | |
run: npm audit --production |