Skip to content

Commit

Permalink
chore!: require node 16.15.0+ in accordance with our JS SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh committed Jan 15, 2025
1 parent 12ae29a commit 7c72faf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ on:
permissions:
contents: read

env:
NODE_VERSION: 22

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -31,7 +34,7 @@ jobs:
cache: 'npm'

- name: Update npm
if: startsWith(matrix.node-version, '18.') || startsWith(matrix.node-version, '20.')
if: startsWith(matrix.node-version, '18.') || startsWith(matrix.node-version, '20.') || startsWith(matrix.node-version, '22.')
run: npm i -g npm

- name: Install dependencies
Expand All @@ -51,7 +54,7 @@ jobs:
- name: Set up node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: '20'
node-version: "$NODE_VERSION"
cache: 'npm'

- name: Update npm
Expand Down Expand Up @@ -93,7 +96,7 @@ jobs:
- name: Set up node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: '20'
node-version: "$NODE_VERSION"
registry-url: 'https://registry.npmjs.org'
scope: '@openfga'
always-auth: false
Expand Down
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
"bugs": {
"url": "https://github.com/openfga/frontend-utils/issues"
},
"engines": {
"node": ">=16.15.0"
},
"homepage": "https://github.com/openfga/frontend-utils#readme",
"publishConfig": {
"access": "public",
Expand Down

0 comments on commit 7c72faf

Please sign in to comment.