diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index d052f015..ad790273 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -12,24 +12,27 @@ jobs: strategy: matrix: - node-version: [16.x] + node-version: [22.x] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Cache node modules - uses: actions/cache@v2 + uses: actions/cache@v4 env: cache-name: cached-node-modules with: path: ~/work/0x-event-pipeline/0x-event-pipeline-evm/node_modules key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + - run: yarn install --frozen-lockfile - run: yarn prettier:ci - run: yarn build diff --git a/.nvmrc b/.nvmrc index 4a972748..b09ba46d 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v18.14.1 +v22.21.0 diff --git a/Dockerfile b/Dockerfile index e9c4d97c..c6458236 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Stage 1 - Build # -FROM node:18-alpine as build +FROM node:22-alpine as build WORKDIR /usr/src/app RUN apk add --update --no-cache \ @@ -19,7 +19,7 @@ RUN yarn build # Stage 2 - Runner # -FROM node:18-alpine +FROM node:22-alpine WORKDIR /usr/src/app COPY package.json tsconfig.json yarn.lock ./