From 2e43098193521779bd8574662f23e688fa75217f Mon Sep 17 00:00:00 2001 From: Yuri Date: Mon, 19 Aug 2024 23:39:10 +0200 Subject: [PATCH] fix gh actions --- .github/workflows/build-and-test.yml | 46 +++++++++++++++------------- .github/workflows/changesets.yml | 17 +++++----- 2 files changed, 34 insertions(+), 29 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 834d469..b193a4f 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -9,24 +9,25 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - node-version: [22] - timeout-minutes: 5 - + node-version: [ 22 ] + timeout-minutes: 10 steps: - name: Checkout uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + version: 9 + - name: Install Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'pnpm' - - uses: pnpm/action-setup@v4 - name: Install pnpm - with: - version: 9 - run_install: true + - name: Install dependencies + run: pnpm install - name: Lint code run: pnpm format && pnpm lint:fix @@ -45,24 +46,25 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - node-version: [22] - timeout-minutes: 5 - + node-version: [ 22 ] + timeout-minutes: 10 steps: - name: Checkout uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + version: 9 + - name: Install Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'pnpm' - - uses: pnpm/action-setup@v4 - name: Install pnpm - with: - version: 9 - run_install: true + - name: Install dependencies + run: pnpm install - name: Build run: pnpm run build @@ -78,17 +80,19 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + version: 9 + - name: Install Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'pnpm' - - uses: pnpm/action-setup@v4 - name: Install pnpm - with: - version: 9 - run_install: true + - name: Install dependencies + run: pnpm install - name: Build run: pnpm run build diff --git a/.github/workflows/changesets.yml b/.github/workflows/changesets.yml index 38894e5..8fd44f8 100644 --- a/.github/workflows/changesets.yml +++ b/.github/workflows/changesets.yml @@ -20,9 +20,8 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - node-version: [22] - timeout-minutes: 5 - + node-version: [ 22 ] + timeout-minutes: 10 steps: - name: Checkout uses: actions/checkout@v4 @@ -30,17 +29,19 @@ jobs: # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits fetch-depth: 0 + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + version: 9 + - name: Install Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'pnpm' - - uses: pnpm/action-setup@v4 - name: Install pnpm - with: - version: 9 - run_install: true + - name: Install dependencies + run: pnpm install - name: Create version pull request or publish to npm uses: changesets/action@v1