Skip to content

Commit 5415314

Browse files
authored
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.
1 parent c59b990 commit 5415314

File tree

3 files changed

+20
-27
lines changed

3 files changed

+20
-27
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,19 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node: [ '12', '14', '15', '16', '17', '18' ]
15-
timeout-minutes: 30
16-
env:
17-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
18-
COVERAGE_OPTION: ./node_modules/.bin/nyc
14+
node: [ '18', '20', '22' ]
15+
timeout-minutes: 15
16+
name: Node ${{ matrix.node }}
1917
steps:
20-
- uses: actions/checkout@v2
21-
- name: Use Node.js
22-
uses: actions/setup-node@v2
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
- name: Setup Node
21+
uses: actions/setup-node@v4
2322
with:
2423
node-version: ${{ matrix.node }}
25-
- name: Cache Node.js modules
26-
uses: actions/cache@v2
27-
with:
28-
path: ~/.npm
29-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
30-
restore-keys: |
31-
${{ runner.os }}-node-
32-
- run: npm ci
24+
cache: 'npm'
25+
- name: Install dependencies
26+
run: npm ci
3327
- run: npm run coverage
3428
env:
3529
CI: true
@@ -38,3 +32,6 @@ jobs:
3832
with:
3933
fail_ci_if_error: true
4034
token: ${{ secrets.CODECOV_TOKEN }}
35+
concurrency:
36+
group: ${{ github.workflow }}-${{ github.ref }}
37+
cancel-in-progress: true
Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,26 @@
11
name: release-automated
22
on:
33
push:
4-
branches: [ main, master, release, alpha, beta ]
4+
branches: [ main, master, release, alpha, beta, next-major, 'release-[0-9]+.x.x' ]
55
jobs:
66
release:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout repository
10-
uses: actions/checkout@v2
10+
uses: actions/checkout@v4
1111
with:
1212
persist-credentials: false
1313
- name: Setup Node
14-
uses: actions/setup-node@v2
14+
uses: actions/setup-node@v4
1515
with:
16-
node-version: 14
17-
- name: Cache Node.js modules
18-
uses: actions/cache@v2
19-
with:
20-
path: ~/.npm
21-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
22-
restore-keys: |
23-
${{ runner.os }}-node-
16+
node-version: 22
17+
cache: 'npm'
2418
- name: Install dependencies
2519
run: npm ci
2620
- name: Run semantic-release
2721
run: npx semantic-release
2822
env:
2923
GH_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
3024
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
25+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3126
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![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)
66
[![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)
77

8+
[![Node Version](https://img.shields.io/badge/nodejs-18,_20,_22-green.svg?logo=node.js&style=flat)](https://nodejs.org)
89
[![npm latest version](https://img.shields.io/npm/v/@parse/gcs-files-adapter.svg)](https://www.npmjs.com/package/@parse/gcs-files-adapter)
910

1011
---

0 commit comments

Comments
 (0)