From 74b4431e7ef21e6f1200f4df05e9e380e99a2450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Jastrz=C4=99bski?= Date: Fri, 3 May 2024 19:34:50 +0200 Subject: [PATCH 1/2] ci: upgrade to node 20 --- .github/workflows/bump.yml | 11 +++++------ .github/workflows/main.yml | 32 ++++++++++++++++---------------- .github/workflows/publish.yml | 8 ++++---- 3 files changed, 25 insertions(+), 26 deletions(-) diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index ffcdd90..b7d5301 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: version: - description: 'Type of version (major / minor / patch)' + description: "Type of version (major / minor / patch)" required: true jobs: @@ -13,14 +13,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out source - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ssh-key: ${{ secrets.DEPLOY_KEY }} - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: - node-version: '16' - cache: 'npm' + node-version: 20 - name: Install dependencies uses: bahmutov/npm-install@v1 - name: Setup Git @@ -31,4 +30,4 @@ jobs: run: npm version ${{ github.event.inputs.version }} - name: Push latest version - run: git push origin main --follow-tags \ No newline at end of file + run: git push origin main --follow-tags diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3a017bb..360d5c9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,12 +8,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 - - name: Use Node 14 - uses: actions/setup-node@v1 + - name: Setup Node.js + uses: actions/setup-node@v4 with: - node-version: 14 + node-version: 20 - name: Install dependencies uses: bahmutov/npm-install@v1 @@ -26,12 +26,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 - - name: Use Node 14 - uses: actions/setup-node@v1 + - name: Setup Node.js + uses: actions/setup-node@v4 with: - node-version: 14 + node-version: 20 - name: Install dependencies uses: bahmutov/npm-install@v1 @@ -44,12 +44,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 - - name: Use Node 14 - uses: actions/setup-node@v1 + - name: Setup Node.js + uses: actions/setup-node@v4 with: - node-version: 14 + node-version: 20 - name: Install dependencies uses: bahmutov/npm-install@v1 @@ -62,12 +62,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 - - name: Use Node 14 - uses: actions/setup-node@v1 + - name: Setup Node.js + uses: actions/setup-node@v4 with: - node-version: 14 + node-version: 20 - name: Install dependencies uses: bahmutov/npm-install@v1 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ff48375..5091d9c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,12 +8,12 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 14 + node-version: "20" registry-url: https://registry.npmjs.org/ - - run: npm install + - uses: bahmutov/npm-install@v1 - run: npm run build - run: npm publish --access public env: From d017eee225cd3d91da1da758195639d519e0d700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Jastrz=C4=99bski?= Date: Fri, 3 May 2024 19:35:08 +0200 Subject: [PATCH 2/2] ci: run main ci in pull requests --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 360d5c9..ca94d42 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,6 @@ name: CI -on: [push] +on: [push, pull_request] jobs: build: