-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (51 loc) · 1.58 KB
/
template-main.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Release
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
SECRETS_VARS: ${{ toJson(secrets) }}
NG_CLI_ANALYTICS: "ci"
permissions:
contents: read # for checkout
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install Angular CLI
run: npm install -g @angular/cli
- name: Build with Maven
run: mvn -B package -DskipTests --file SpringBoot/Konex/pom.xml
- name: show jar konex
run: ls SpringBoot/Konex/target
- name: Build with Angular
run: |
npm run ng analytics off --prefix Angular/Konex/
npm install --prefix Angular/Konex/
npm run build --prefix Angular/Konex/
- name: show dist folder
run: ls Angular/Konex/dist
- name: setup semantic-release
run: npm install -g semantic-release @semantic-release/git @semantic-release/changelog -D
- name: release
run: npx [email protected]