Skip to content

Commit 5a795ef

Browse files
authored
feat: upgrade to Node 20 (#93)
1 parent 35b1e19 commit 5a795ef

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
platform: [ubuntu-22.04]
17-
node: ['18', '20']
17+
node: ['20']
1818

1919
runs-on: ${{ matrix.platform }}
2020

@@ -27,7 +27,7 @@ jobs:
2727
restore-keys: |
2828
${{ runner.os }}-node-
2929
- name: Set up Node
30-
uses: actions/setup-node@v3
30+
uses: actions/setup-node@v4
3131
with:
3232
node-version: ${{ matrix.node }}
3333

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
node:
15-
- '18'
15+
- '20'
1616

1717
runs-on: ubuntu-22.04
1818

@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/checkout@v3
2525

2626
- name: Set up Node
27-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2828
with:
2929
node-version: ${{ matrix.node }}
3030

@@ -52,22 +52,22 @@ jobs:
5252

5353
steps:
5454
- name: Set up QEMU
55-
uses: docker/setup-qemu-action@v2
55+
uses: docker/setup-qemu-action@v3
5656
with:
5757
platforms: arm64,amd64
5858

5959
- name: Set up Docker Buildx
60-
uses: docker/setup-buildx-action@v2
60+
uses: docker/setup-buildx-action@v3
6161

6262
- name: Login to DockerHub
63-
uses: docker/login-action@v2
63+
uses: docker/login-action@v3
6464
with:
6565
username: ${{ secrets.DOCKERHUB_USERNAME }}
6666
password: ${{ secrets.DOCKERHUB_TOKEN }}
6767

6868
- name: Build and push
6969
id: docker_build
70-
uses: docker/build-push-action@v3
70+
uses: docker/build-push-action@v5
7171
with:
7272
push: true
7373
tags: supabase/stripe-sync-engine:latest,supabase/stripe-sync-engine:v${{ needs.release.outputs.new-release-version }}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18
1+
v20

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build step
2-
FROM node:18-alpine
2+
FROM node:20-alpine
33
WORKDIR /app
44
COPY package.json package-lock.json ./
55
RUN npm ci
@@ -8,7 +8,7 @@ RUN npm run build
88
RUN npm prune --production
99

1010
## Build step complete, copy to working image
11-
FROM node:18-alpine
11+
FROM node:20-alpine
1212
WORKDIR /app
1313
ENV NODE_ENV=production
1414
COPY --from=0 /app .

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"author": "Supabase",
2525
"license": "MIT",
2626
"engines": {
27-
"node": ">= 18.0.0"
27+
"node": ">= 20.0.0"
2828
},
2929
"dependencies": {
3030
"@fastify/autoload": "^5.8.0",

0 commit comments

Comments
 (0)