-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.26 KB
/
on-code-change.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
34
35
36
37
38
39
40
41
# This workflow is triggered every time a change is pushed to any branches
# Github actions command reference: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
name: On Code Change (PR)
# The workflow could also be triggered on PRs
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
static-analysis:
name: Static Analysis (linting, vulns)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jahia/jahia-modules-action/static-analysis@v2
with:
node_version: 18
auditci_level: critical
build:
name: Build NPM Module
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jahia/jahia-modules-action/build-step-npm@v2
npm-publish:
name: Publish NPM Module to Maven repository
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Publish NPM package
uses: jahia/jahia-modules-action/publish-npm@v2
with:
mvn_settings_filepath: .github/maven.settings.xml
nexus_username: ${{ secrets.NEXUS_USERNAME }}
nexus_password: ${{ secrets.NEXUS_PASSWORD }}
module_path: ./
node_version: 18