From a0e570e8b12adfcf02f5a2240dc3b26c5145010a Mon Sep 17 00:00:00 2001 From: Alex Lanz Date: Fri, 15 Mar 2024 14:01:14 +0100 Subject: [PATCH 1/4] update engines --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e20a606..36a301d 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,8 @@ }, "homepage": "https://github.com/aboutbits/zod-locales-formatjs#readme", "engines": { - "npm": "^8", - "node": "^16" + "npm": "^8 || ^9 || ^10", + "node": "^16 || ^18 || ^20" }, "dependencies": { "@formatjs/intl": "^2.6.5", From 4c2fc3874b8ed8a782c30d56ca1a7868b5c4012e Mon Sep 17 00:00:00 2001 From: Alex Lanz Date: Fri, 15 Mar 2024 15:54:12 +0100 Subject: [PATCH 2/4] update engines --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 36a301d..65ba341 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,8 @@ }, "homepage": "https://github.com/aboutbits/zod-locales-formatjs#readme", "engines": { - "npm": "^8 || ^9 || ^10", - "node": "^16 || ^18 || ^20" + "npm": ">=8", + "node": ">=16" }, "dependencies": { "@formatjs/intl": "^2.6.5", From 618e8df19ef87d9fe9c9e20ec7ad3aea87b4de8e Mon Sep 17 00:00:00 2001 From: Alex Lanz Date: Mon, 18 Mar 2024 08:08:37 +0100 Subject: [PATCH 3/4] update GitHub actions --- .github/workflows/main.yml | 8 ++++---- .github/workflows/test.yml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ad8758b..419d92a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,15 +6,15 @@ on: - 'v*' env: - NODE_VERSION: 16 + NODE_VERSION: 20 jobs: build: runs-on: ubuntu-22.04 timeout-minutes: 5 steps: - - uses: actions/checkout@v3 - - uses: actions/github-script@v6 + - uses: actions/checkout@v4 + - uses: actions/github-script@v7 with: script: | github.rest.repos.createRelease({ @@ -23,7 +23,7 @@ jobs: tag_name: '${{ github.ref }}', name: 'Release ${{ github.ref_name }}' }) - - uses: aboutbits/github-actions-node/setup-and-install@v1 + - uses: aboutbits/github-actions-node/setup-and-install@v2 with: node-version: ${{ env.NODE_VERSION }} registry-url: 'https://registry.npmjs.org' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 03e878f..cfcb492 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,15 +3,15 @@ name: Test Package on: push env: - NODE_VERSION: 16 + NODE_VERSION: 20 jobs: test: runs-on: ubuntu-22.04 timeout-minutes: 15 steps: - - uses: actions/checkout@v3 - - uses: aboutbits/github-actions-node/setup-and-install@v1 + - uses: actions/checkout@v4 + - uses: aboutbits/github-actions-node/setup-and-install@v2 with: node-version: ${{ env.NODE_VERSION }} - run: npm run lint From 180e7916dfb532b6dc352282c083c9924e7f7455 Mon Sep 17 00:00:00 2001 From: Alex Lanz Date: Mon, 18 Mar 2024 09:34:23 +0100 Subject: [PATCH 4/4] test code with all supported Node versions --- .github/workflows/test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cfcb492..60627e5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,17 +2,17 @@ name: Test Package on: push -env: - NODE_VERSION: 20 - jobs: test: runs-on: ubuntu-22.04 timeout-minutes: 15 + strategy: + matrix: + node_version: [16, 18, 20] steps: - uses: actions/checkout@v4 - uses: aboutbits/github-actions-node/setup-and-install@v2 with: - node-version: ${{ env.NODE_VERSION }} + node-version: ${{ matrix.node_version }} - run: npm run lint - run: npm run typecheck