Skip to content

Chore: upgrade to nuxt 4 (#4) #20

Chore: upgrade to nuxt 4 (#4)

Chore: upgrade to nuxt 4 (#4) #20

Workflow file for this run

# Document: https://help.github.com/ja/actions
# GitHub Pages Deployment - Nuxt.js
name: DEPLOYMENT
on:
push:
branches:
- main
pull_request:
types: [opened]
branches:
- main
- '!*' #ignore all other branches
env:
NODE_VERSION: '22.9.0'
SERVICE_NAME: 'nuxt3-custom'
#REGISTRY_HOSTNAME: 'your registry docker'
jobs:
deploy:
name: Deployment
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [22.9.0]
steps:
- name: Checkout 🛎 ${{ matrix.node }}
uses: actions/checkout@master
- name: Setup node env 🏗
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
check-latest: true
- name: Get yarn cache directory path 🛠
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache node_modules 📦
uses: actions/[email protected]
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies 👨🏻‍💻
run: yarn ci
- name: Build 👨🏻‍💻
run: yarn check:all
# uncomment to use this with your Docker registry
# - if: success()
# name: deploy docker
# env:
# NODE_ENV: production
# run: docker build -t ${{ env.REGISTRY_HOSTNAME }}/${{ env.SERVICE_NAME }}:latest -f ./docker/Dockerfile .
# - name: Publish docker image
# run: |
# docker push ${{ env.REGISTRY_HOSTNAME }}/${{ env.SERVICE_NAME }}:latest