-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (32 loc) · 868 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Build, test and publish npm package
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
publish-worker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
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 }}
registry-url: 'https://npm.pkg.github.com'
- run: npm ci
- uses: oke-py/npm-audit-action@v2
with:
audit_level: moderate
github_token: ${{ secrets.GITHUB_TOKEN }}
issue_assignees: ganesh47
issue_labels: vulnerability,test
dedupe_issues: true
- run: npm run build --if-present
- run: npm test