Skip to content

fix: use environment variables in NX #847

fix: use environment variables in NX

fix: use environment variables in NX #847

Workflow file for this run

name: branch
on:
#we need to keep on push as target because of this issue https://github.com/orgs/community/discussions/65321
push:
branches:
- '**'
- '!main'
permissions:
actions: read
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- run: npm ci
- uses: nrwl/nx-set-shas@v4
- run: |
echo "BASE: ${{ env.NX_BASE }}"
echo "HEAD: ${{ env.NX_HEAD }}"
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: install python tools
run: |
pip install poetry
- name: Set up specific jdk
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 21
- name: Set up Dart
uses: dart-lang/setup-dart@v1
with:
sdk: 3.6.0
- run: npx nx affected -t build --parallel=1