Skip to content

Linting

Linting #39

name: GitHub Pages bygg og deploy
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: npm
registry-url: "https://npm.pkg.github.com"
- name: Install
env:
NPM_TOKEN: ${{ secrets.READER_TOKEN }}
run: npm ci
- name: Build
run: npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
folder: out