diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 78795f7..9123935 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -13,7 +13,7 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v2 with: - version: 7 + version: 7 # or whatever version you prefer - name: Check out code uses: actions/checkout@v3 @@ -34,6 +34,15 @@ jobs: restore-keys: | ${{ runner.os }}-pnpm-store- + - name: Generate pnpm-lock.yaml if it doesn't exist + run: | + if [ ! -f pnpm-lock.yaml ]; then + echo "pnpm-lock.yaml not found. Generating it..." + pnpm install --lockfile-only + else + echo "pnpm-lock.yaml found. Proceeding with installation..." + fi + - name: Installing dependencies run: pnpm install --frozen-lockfile