diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a7cab552..706bd12b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,7 +6,7 @@ on: - main env: - NODE_VERSION: 16 + NODE_VERSION: 20 concurrency: group: ${{ github.ref }} @@ -16,11 +16,14 @@ jobs: checks: runs-on: ubuntu-22.04 timeout-minutes: 10 + strategy: + matrix: + node_version: [16, 18, 20] 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 }} + node-version: ${{ matrix.node_version }} - name: Lint run: npm run lint shell: bash @@ -31,11 +34,14 @@ jobs: test: runs-on: ubuntu-22.04 timeout-minutes: 10 + strategy: + matrix: + node_version: [16, 18, 20] 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 }} + node-version: ${{ matrix.node_version }} - name: Test run: npm run test shell: bash @@ -48,8 +54,8 @@ jobs: - checks - test 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 }} - uses: aboutbits/github-actions-vercel/deploy@v1 diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index d85a38b0..17a2adb8 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -5,7 +5,7 @@ on: types: [opened, reopened, synchronize, closed] env: - NODE_VERSION: 16 + NODE_VERSION: 20 VERCEL_SCOPE: aboutbits VERCEL_ORGANIZATION_ID: team_e2WfHoRuw9BQVW7oYmMSKRJ6 VERCEL_PROJECT_ID: prj_PBGTsidF0cEZ6uj5mN2Rev0pulxG @@ -21,8 +21,8 @@ jobs: timeout-minutes: 10 if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize' }} 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 }} - name: Lint @@ -37,8 +37,8 @@ jobs: timeout-minutes: 10 if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize' }} 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 }} - name: Test @@ -50,7 +50,7 @@ jobs: timeout-minutes: 5 if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' }} steps: - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: script: | github.rest.issues.createComment({ @@ -68,8 +68,8 @@ jobs: - checks - test 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 }} - id: deploy @@ -90,8 +90,8 @@ jobs: timeout-minutes: 10 if: ${{ github.event.action == 'closed' }} 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 }} - uses: aboutbits/github-actions-vercel/unlink-domain@v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad8758bd..419d92aa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.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/package.json b/package.json index 046c5792..6bf39400 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,8 @@ }, "homepage": "https://react-ui.aboutbits.it", "engines": { - "npm": "^8 || ^9", - "node": "^16 || ^18" + "npm": ">=8", + "node": ">=16" }, "scripts": { "dev": "storybook dev -p 4000 --no-open",