name: Build on: workflow_call: jobs: build: name: Build runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: "${{ env.NODE_VERSION }}" registry-url: "${{ env.NODE_REGISTRY }}" - uses: pnpm/action-setup@v4 name: Install pnpm with: version: ${{ env.PNPM_VERSION }} run_install: false - name: Get pnpm store directory shell: bash run: | echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - uses: actions/cache@v4 name: Setup pnpm cache with: path: ${{ env.STORE_PATH }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- - name: Install dependencies run: pnpm install env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Build run: pnpm build - name: Run tests run: pnpm test - uses: actions/upload-artifact@v4 with: name: lib retention-days: 5 path: | packages/*/dist extensions/*/dist server/*/dist package.json README.md