File tree Expand file tree Collapse file tree 2 files changed +16
-22
lines changed Expand file tree Collapse file tree 2 files changed +16
-22
lines changed Original file line number Diff line number Diff line change 15
15
- uses : actions/setup-node@v4
16
16
with :
17
17
node-version : 18
18
- - run : npm install
19
- - run : npm run build
20
- - uses : SonarSource/sonarqube-scan-action@v4.2.1
18
+ - uses : oneteme/automation-scripts/.github/actions/sonar-npm-scan@main
21
19
env :
22
20
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change 4
4
build :
5
5
runs-on : ubuntu-latest
6
6
steps :
7
- - uses : actions/checkout@v4
8
- with :
9
- fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
10
- - uses : actions/setup-node@v4
11
- with :
12
- node-version : 18
13
- - run : npm install
14
- - run : npm run build
15
- - uses : SonarSource/sonarqube-scan-action@v4.2.1
16
- env :
17
- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
18
- - run : echo "version=$(node -p 'require("./package.json").version')" >>$GITHUB_OUTPUT
19
- id : npmVer
7
+ - uses : actions/checkout@v4
8
+ with :
9
+ fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
10
+ - uses : actions/setup-node@v4
11
+ with :
12
+ node-version : 18
13
+ - uses : oneteme/automation-scripts/.github/actions/sonar-npm-scan@main
14
+ env :
15
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
16
+ - uses : oneteme/automation-scripts/.github/actions/npm-project-version@main
17
+ id : prj_ver
20
18
outputs :
21
- version : ${{ steps.npmVer .outputs.version }}
19
+ version : ${{ steps.prj_ver .outputs.version }}
22
20
release :
23
21
needs : build
24
22
runs-on : ubuntu-latest
25
23
steps :
26
- - run : gh release create "$version" --repo="$GITHUB_REPOSITORY" --target="$branch" --title="$version" --generate-notes
27
- env :
28
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
- branch : " ${{ github.ref_name }}"
30
- version : " v${{ needs.build.outputs.version }}"
24
+ - uses : oneteme/automation-scripts/.github/actions/create-release-notes@main
25
+ with :
26
+ version : ${{ needs.build.outputs.version }}
You can’t perform that action at this time.
0 commit comments