diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 4889536..cf10b09 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -33,19 +33,16 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - - name: Install Pnpm - run: | - npm install -g corepack@latest --force - corepack enable - - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 with: node-version: ${{ matrix.node-version }} package-manager-cache: false - - name: Install dependencies - run: pnpm i + - name: Install Pnpm + uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 + with: + run_install: true - name: Run checks run: pnpm run lint @@ -73,19 +70,16 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - - name: Install Pnpm - run: | - npm install -g corepack@latest --force - corepack enable - - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 with: node-version: ${{ matrix.node-version }} package-manager-cache: false - - name: Install dependencies - run: pnpm i + - name: Install Pnpm + uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 + with: + run_install: true - name: Run tests run: pnpm run test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 011bd3f..756f053 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,14 +24,12 @@ jobs: uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 with: node-version: 24.16.0 + package-manager-cache: false - - name: Setup Pnpm - run: | - npm install -g corepack@latest --force - corepack enable - - - name: Install Dependencies - run: pnpm i + - name: Install Pnpm + uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 + with: + run_install: true - name: Build Packages run: pnpm build