Skip to content

Commit

Permalink
build: update node and dependency versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Trickfilm400 committed Jan 12, 2024
1 parent 1c22e66 commit e2bb70b
Show file tree
Hide file tree
Showing 5 changed files with 5,144 additions and 10,088 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/buildOpenAPI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand All @@ -44,7 +44,7 @@ jobs:
# - run: cd out && echo //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }} >> ~/.npmrc
- run: cd out && npm i
- run: cd out && npm run build
- uses: JS-DevTools/npm-publish@v1
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
package: out/package.json
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
push: true
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine3.16 AS builder
FROM node:20-alpine3.19 AS builder

WORKDIR /build

Expand All @@ -9,12 +9,12 @@ COPY . .

# build and install only production dependencies
RUN npm run build
RUN npm ci --only=production
RUN npm ci --omit=dev


######################################################################

FROM node:16-alpine3.16
FROM node:20-alpine3.19

WORKDIR /app

Expand Down
Loading

0 comments on commit e2bb70b

Please sign in to comment.