stages:
  - build
  # - publish

build:
  stage: build
  before_script:
    - source ~/.bashrc
    - corepack enable
    - pnpm config set store-dir .pnpm-store
  script:
    - pnpm install
    - npx nx build @nitrogenbuilder/client-core
  artifacts:
    expire_in: 1 week
  cache:
    key:
      files:
        - pnpm-lock.yaml
    paths:
      - .pnpm-store
# deploy:
#   stage: publish
#   script:
#     - npx nx publish @nitrogenbuilder/client-core
