add BACKEND_URL variable in env #312
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Status | |
| on: | |
| push: | |
| branches: ['dev'] | |
| pull_request: | |
| branches: ['dev'] | |
| env: | |
| KEYCLOAK_CLIENT_ID: ${{secrets.KEYCLOAK_CLIENT_ID}} | |
| KEYCLOAK_CLIENT_SECRET: ${{secrets.KEYCLOAK_CLIENT_SECRET}} | |
| AUTH_ISSUER: ${{secrets.AUTH_ISSUER}} | |
| NEXTAUTH_URL: ${{secrets.NEXTAUTH_URL_DS}} | |
| NEXT_PUBLIC_NEXTAUTH_URL: ${{secrets.NEXT_PUBLIC_NEXTAUTH_URL_DS}} | |
| NEXTAUTH_SECRET: ${{secrets.NEXTAUTH_SECRET}} | |
| END_SESSION_URL: ${{secrets.END_SESSION_URL}} | |
| REFRESH_TOKEN_URL: ${{secrets.REFRESH_TOKEN_URL}} | |
| NEXT_PUBLIC_BACKEND_URL: ${{secrets.NEXT_PUBLIC_BACKEND_URL_DS}} | |
| BACKEND_URL: ${{secrets.BACKEND_URL}} | |
| BACKEND_GRAPHQL_URL: ${{secrets.BACKEND_GRAPHQL_URL_DS}} | |
| NEXT_PUBLIC_ENABLE_ACCESSMODEL: ${{secrets.NEXT_PUBLIC_ENABLE_ACCESSMODEL_DS}} | |
| NEXT_PUBLIC_BACKEND_GRAPHQL_URL: ${{secrets.NEXT_PUBLIC_BACKEND_GRAPHQL_URL_DS}} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x] | |
| env: | |
| BACKEND_GRAPHQL_URL: ${{secrets.BACKEND_GRAPHQL_URL_DS}} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - run: npm ci --force | |
| - run: npm run generate | |
| - run: npm run build --if-present |