diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fad0be731a..c9e5d8acc0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [20.x] + node-version: [20.x, 22.x] steps: - uses: actions/checkout@v4 @@ -42,7 +42,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: 22.x cache: 'yarn' - run: yarn install --frozen-lockfile - run: yarn lint @@ -54,7 +54,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: 22.x cache: 'yarn' - run: yarn install --frozen-lockfile - run: yarn tsc @@ -92,7 +92,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: 22.x cache: 'yarn' - run: yarn install --frozen-lockfile - run: yarn test:${{ matrix.test-group }} @@ -134,7 +134,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: 22.x cache: 'yarn' - run: yarn install --frozen-lockfile - run: yarn sequelize db:migrate @@ -151,7 +151,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: 22.x cache: 'yarn' - run: yarn install --frozen-lockfile - name: Set environment to production diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000000..2bd5a0a98a --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +22 diff --git a/Dockerfile b/Dockerfile index fcc6d08168..6dce199e2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ARG APP_PATH WORKDIR $APP_PATH # --- -FROM node:20-slim AS runner +FROM node:22-slim AS runner LABEL org.opencontainers.image.source="https://github.com/outline/outline" diff --git a/package.json b/package.json index 96ab8d1d80..5573505ca8 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "url": "https://github.com/sponsors/outline" }, "engines": { - "node": ">= 18 <=20" + "node": ">= 20 <=22" }, "repository": { "type": "git",