From 49f5b734a929c0889ab5bdfc1997b3039856a9a8 Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Fri, 23 Aug 2024 15:12:44 +0200 Subject: [PATCH 1/3] ci: trigger semantic release only on push on main, next and beta --- .github/workflows/release.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae3c168a..04358be6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,8 +7,6 @@ name: Release CI on: push: branches: [main, next, beta] - pull_request: - branches: [main, next, beta] jobs: publish: From e9a6df02feb39bb1f6c9e8b0f450dbbc5aaf497b Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Fri, 23 Aug 2024 15:15:23 +0200 Subject: [PATCH 2/3] ci: remove matrix strategy, explicit version on action --- .github/workflows/build.yml | 7 ++----- .github/workflows/release.yml | 7 ++----- .github/workflows/test.yml | 7 ++----- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2cf8a17d..9105275e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,18 +10,15 @@ jobs: test: runs-on: ubuntu-latest environment: test - strategy: - matrix: - node-version: [20] steps: - name: Checkout uses: actions/checkout@v4 - name: Setup pnpm uses: pnpm/action-setup@v4 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js 20 uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: 20 cache: pnpm - name: Install dependencies run: pnpm install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04358be6..5e7ee3c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,18 +13,15 @@ jobs: name: Publish to npm runs-on: ubuntu-latest environment: production - strategy: - matrix: - node-version: [20] steps: - name: Checkout uses: actions/checkout@v4 - name: Setup pnpm uses: pnpm/action-setup@v4 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: 20 cache: pnpm - name: Install dependencies run: pnpm install diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3e1a6469..8a078908 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,18 +10,15 @@ jobs: name: Tests runs-on: ubuntu-latest environment: test - strategy: - matrix: - node-version: [20] steps: - name: Checkout uses: actions/checkout@v4 - name: Setup pnpm uses: pnpm/action-setup@v4 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js 20 uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: 20 cache: pnpm - name: Install dependencies run: pnpm install From 0a6b95d2412d5ad41f86ae880d1f9bb65f3b3441 Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Fri, 20 Sep 2024 08:21:09 +0200 Subject: [PATCH 3/3] ci: use node 18 for actions --- .github/workflows/build.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9105275e..5eaad02e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,10 +15,10 @@ jobs: uses: actions/checkout@v4 - name: Setup pnpm uses: pnpm/action-setup@v4 - - name: Use Node.js 20 + - name: Use Node.js 18 uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 18 cache: pnpm - name: Install dependencies run: pnpm install diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8a078908..938362f5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,10 +15,10 @@ jobs: uses: actions/checkout@v4 - name: Setup pnpm uses: pnpm/action-setup@v4 - - name: Use Node.js 20 + - name: Use Node.js 18 uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 18 cache: pnpm - name: Install dependencies run: pnpm install