diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f23a750..1023daa8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,6 @@ jobs: ci: uses: shlinkio/github-actions/.github/workflows/web-app-ci.yml@main with: - node-version: 18.12 + node-version: 20.2 publish-coverage: true force-install: true diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 43cc780a..02d402ae 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -9,14 +9,14 @@ jobs: continue-on-error: true steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.event.pull_request.head.ref }} - name: Use node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: 18.12 + node-version: 20.2 - name: Build run: | npm ci --force && \ diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 554783a1..6241ec6c 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -10,11 +10,11 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Use node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: 18.12 + node-version: 20.2 - name: Generate release assets run: npm ci --force && VERSION=${GITHUB_REF#refs/tags/v} npm run build:dist - name: Publish release with assets diff --git a/Dockerfile b/Dockerfile index 61f29c6a..214c2292 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18.12-alpine as node +FROM node:20.2-alpine as node COPY . /shlink-web-client ARG VERSION="latest" ENV VERSION ${VERSION} diff --git a/docker-compose.yml b/docker-compose.yml index dbe6884c..b9bbf511 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: '3' services: shlink_web_client_node: container_name: shlink_web_client_node - image: node:18.12-alpine + image: node:20.2-alpine command: /bin/sh -c "cd /home/shlink/www && npm install --force && npm run start" volumes: - ./:/home/shlink/www