From 54153149a7a7a7ba0685691dfe11c10332041f0c Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Wed, 20 Nov 2024 21:14:41 +0100 Subject: [PATCH] feat: Add support for Node 20, 22; remove support for Node 12, 14, 15, 16, 17 (#54) BREAKING CHANGE: Removes support for Node 12, 14, 15, 16, 17. --- .github/workflows/ci.yml | 29 +++++++++++-------------- .github/workflows/release-automated.yml | 17 +++++---------- README.md | 1 + 3 files changed, 20 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5f4e67..02b78b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,25 +11,19 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [ '12', '14', '15', '16', '17', '18' ] - timeout-minutes: 30 - env: - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} - COVERAGE_OPTION: ./node_modules/.bin/nyc + node: [ '18', '20', '22' ] + timeout-minutes: 15 + name: Node ${{ matrix.node }} steps: - - uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v2 + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - - name: Cache Node.js modules - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - - run: npm ci + cache: 'npm' + - name: Install dependencies + run: npm ci - run: npm run coverage env: CI: true @@ -38,3 +32,6 @@ jobs: with: fail_ci_if_error: true token: ${{ secrets.CODECOV_TOKEN }} +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true diff --git a/.github/workflows/release-automated.yml b/.github/workflows/release-automated.yml index 04dda86..a2ead28 100644 --- a/.github/workflows/release-automated.yml +++ b/.github/workflows/release-automated.yml @@ -1,26 +1,20 @@ name: release-automated on: push: - branches: [ main, master, release, alpha, beta ] + branches: [ main, master, release, alpha, beta, next-major, 'release-[0-9]+.x.x' ] jobs: release: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: persist-credentials: false - name: Setup Node - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: - node-version: 14 - - name: Cache Node.js modules - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + node-version: 22 + cache: 'npm' - name: Install dependencies run: npm ci - name: Run semantic-release @@ -28,4 +22,5 @@ jobs: env: GH_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/README.md b/README.md index bee00fc..4afcedb 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ [![Coverage](https://img.shields.io/codecov/c/github/parse-community/parse-server-gcs-adapter/main.svg)](https://codecov.io/github/parse-community/parse-server-gcs-adapter?branch=main) [![auto-release](https://img.shields.io/badge/%F0%9F%9A%80-auto--release-9e34eb.svg)](https://github.com/parse-community/parse-server-gcs-adapter/releases) +[![Node Version](https://img.shields.io/badge/nodejs-18,_20,_22-green.svg?logo=node.js&style=flat)](https://nodejs.org) [![npm latest version](https://img.shields.io/npm/v/@parse/gcs-files-adapter.svg)](https://www.npmjs.com/package/@parse/gcs-files-adapter) ---