Skip to content

Commit

Permalink
Fix UI build (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
glucaci authored Apr 22, 2024
1 parent 1a05df7 commit e0f44a8
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,23 @@ jobs:
pr_target_branch: ${{ github.base_ref }}
github_repository: ${{ github.repository }}
sonar_exclusions: ${{ vars.SONAR_EXCLUSIONS }}

ui:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
check-latest: true
node-version-file: 'src/UI/package.json'
cache: 'yarn'
cache-dependency-path: 'src/UI/yarn.lock'
- name: Build UI
run: |
export NODE_OPTIONS=--openssl-legacy-provider
yarn config set strict-ssl false
yarn --cwd src/UI
yarn --cwd src/UI build
shell: bash
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,23 @@ jobs:
uses: actions/checkout@v4
- name: Use .NET SDK from global.json
uses: actions/setup-dotnet@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
check-latest: true
node-version-file: 'src/UI/package.json'
cache: 'yarn'
cache-dependency-path: 'src/UI/yarn.lock'
- name: Build UI
run: |
export NODE_OPTIONS=--openssl-legacy-provider
yarn config set strict-ssl false
yarn --cwd src/UI
yarn --cwd src/UI build
rm -rf src/Server/src/AspNet/UI
mkdir src/Server/src/AspNet/UI/
cp -rf src/UI/dist/* src/Server/src/AspNet/UI
shell: bash
- name: Build, Test and Push
uses: swisslife-oss/actions/release-packages@main
with:
Expand Down

0 comments on commit e0f44a8

Please sign in to comment.