Update actions dependencies and node

This commit is contained in:
Alejandro Celaya 2023-05-27 09:40:10 +02:00
parent 131a745514
commit 3da2b56426
5 changed files with 9 additions and 9 deletions

View file

@ -11,6 +11,6 @@ jobs:
ci: ci:
uses: shlinkio/github-actions/.github/workflows/web-app-ci.yml@main uses: shlinkio/github-actions/.github/workflows/web-app-ci.yml@main
with: with:
node-version: 18.12 node-version: 20.2
publish-coverage: true publish-coverage: true
force-install: true force-install: true

View file

@ -9,14 +9,14 @@ jobs:
continue-on-error: true continue-on-error: true
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
repository: ${{ github.event.pull_request.head.repo.full_name }} repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }} ref: ${{ github.event.pull_request.head.ref }}
- name: Use node.js - name: Use node.js
uses: actions/setup-node@v1 uses: actions/setup-node@v3
with: with:
node-version: 18.12 node-version: 20.2
- name: Build - name: Build
run: | run: |
npm ci --force && \ npm ci --force && \

View file

@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Use node.js - name: Use node.js
uses: actions/setup-node@v1 uses: actions/setup-node@v3
with: with:
node-version: 18.12 node-version: 20.2
- name: Generate release assets - name: Generate release assets
run: npm ci --force && VERSION=${GITHUB_REF#refs/tags/v} npm run build:dist run: npm ci --force && VERSION=${GITHUB_REF#refs/tags/v} npm run build:dist
- name: Publish release with assets - name: Publish release with assets

View file

@ -1,4 +1,4 @@
FROM node:18.12-alpine as node FROM node:20.2-alpine as node
COPY . /shlink-web-client COPY . /shlink-web-client
ARG VERSION="latest" ARG VERSION="latest"
ENV VERSION ${VERSION} ENV VERSION ${VERSION}

View file

@ -3,7 +3,7 @@ version: '3'
services: services:
shlink_web_client_node: shlink_web_client_node:
container_name: 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" command: /bin/sh -c "cd /home/shlink/www && npm install --force && npm run start"
volumes: volumes:
- ./:/home/shlink/www - ./:/home/shlink/www