Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 5 additions & 27 deletions .github/workflows/frontend-tsef-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,18 @@ concurrency:
cancel-in-progress: false

jobs:
setup:
uses: ./.github/workflows/_setup.yml

build:
name: Build
runs-on: ubuntu-latest
needs: setup

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node from .nvmrc
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Enable corepack
run: corepack enable || true

- name: Detect package manager
id: pm
shell: bash
run: |
if [ -f pnpm-lock.yaml ]; then echo "pm=pnpm" >> $GITHUB_OUTPUT; exit 0; fi
if [ -f yarn.lock ]; then echo "pm=yarn" >> $GITHUB_OUTPUT; exit 0; fi
if [ -f package-lock.json ]; then echo "pm=npm" >> $GITHUB_OUTPUT; exit 0; fi
echo "pm=pnpm" >> $GITHUB_OUTPUT
fetch-depth: 0

- name: Install dependencies
shell: bash
run: |
PM="${{ steps.pm.outputs.pm }}"
if [ "$PM" = "pnpm" ]; then pnpm install --frozen-lockfile; fi
if [ "$PM" = "yarn" ]; then yarn install --frozen-lockfile; fi
if [ "$PM" = "npm" ]; then npm ci; fi
- name: Setup environment
uses: ./.github/actions/setup-env

- name: Build application for all languages
run: npx nx build frontend-tsef --configuration=production
Expand All @@ -64,6 +41,7 @@ jobs:
path: 'dist/apps/frontend-tsef/browser'

deploy:
name: Deploy
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/pull-request-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set Nx SHA
uses: nrwl/nx-set-shas@v4
Expand All @@ -34,6 +36,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set Nx SHA
uses: nrwl/nx-set-shas@v4
Expand All @@ -53,6 +57,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set Nx SHA
uses: nrwl/nx-set-shas@v4
Expand All @@ -72,6 +78,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set Nx SHA
uses: nrwl/nx-set-shas@v4
Expand Down