Skip to content

Commit

Permalink
ajustes template
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatist-ban committed Feb 20, 2024
1 parent 314d998 commit 5c2afff
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/template-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
SECRETS_VARS: ${{ toJson(secrets) }}
NG_CLI_ANALYTICS: "ci"

permissions:
contents: read # for checkout
Expand All @@ -32,15 +33,25 @@ jobs:
distribution: 'adopt'
cache: maven
- name: Setup Node.js
#uses: actions/setup-node@v2
#with:
# node-version: 'lts/*'
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install Angular CLI
run: npm install -g @angular/cli
- name: validate ng
run: ng help
- name: Build with Maven
run: mvn -B package -DskipTests --file SpringBoot/Konex/pom.xml
- name: setup semantic-release
run: npm install -g semantic-release @semantic-release/git @semantic-release/changelog -D
- name: show jar konex
run: |
ls SpringBoot/Konex/
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: setup semantic-release
# run: npm install -g semantic-release @semantic-release/git @semantic-release/changelog -D
- name: release
run: npx [email protected]
6 changes: 4 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/github", {
"assets": ["SpringBoot/Konex/target/**"]
"@semantic-release/npm",
{
"npmPublish": false,
"tarballDir": "dist"
}
]
]
Expand Down

0 comments on commit 5c2afff

Please sign in to comment.