Skip to content

add ci run key

add ci run key #16

Workflow file for this run

name: ci
on: [push, pull_request]
jobs:
run-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Cache node modules
uses: actions/cache@v3
id: cache
with:
path: node_modules
key: npm-packages-${{ hashFiles('**/package-lock.json') }}
- name: Install the project dependencies
if: steps.cache.outputs.cache-hit == false
run: npm ci
- name: Setting env variables
run: echo "NEXT_PUBLIC_IMAGE_URL=${{ secrets.NEXT_PUBLIC_IMAGE_URL }}" >> $GITHUB_ENV
- name: Build
run: npm run build