diff --git a/.github/workflows/publish-commit.yml b/.github/workflows/publish-commit.yml index 29e01656a1..09f261b945 100644 --- a/.github/workflows/publish-commit.yml +++ b/.github/workflows/publish-commit.yml @@ -1,5 +1,11 @@ name: 🚀 pkg-pr-new -on: [push, pull_request] +on: + push: + paths: + - "packages/**" + pull_request: + paths: + - "packages/**" concurrency: group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }} @@ -17,7 +23,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v4 @@ -26,9 +32,11 @@ jobs: - uses: actions/setup-node@v4 with: node-version-file: "package.json" + cache: "pnpm" + cache-dependency-path: "**/pnpm-lock.yaml" - name: Install dependencies - run: pnpm install + run: pnpm install --frozen-lockfile - name: Configure Nx Cloud environment run: | diff --git a/.github/workflows/publish_custom-pre.yml b/.github/workflows/publish_custom-pre.yml index 5036ba340f..2ae36111c6 100644 --- a/.github/workflows/publish_custom-pre.yml +++ b/.github/workflows/publish_custom-pre.yml @@ -14,7 +14,7 @@ jobs: timeout-minutes: 20 steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup pnpm uses: pnpm/action-setup@v4 @@ -25,12 +25,14 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20.x + cache: "pnpm" + cache-dependency-path: "**/pnpm-lock.yaml" registry-url: https://registry.npmjs.org env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Install Dependencies - run: pnpm i + run: pnpm install --frozen-lockfile - name: Configure Nx Cloud environment run: |