Skip to content

Bygg og push image til team tilbake sitt Google Artifact Registry #97

Bygg og push image til team tilbake sitt Google Artifact Registry

Bygg og push image til team tilbake sitt Google Artifact Registry #97

Workflow file for this run

name: Build PR
on:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
prettier:
name: ✨ Prettier
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: 🔧💻 Setup node
uses: actions/setup-node@v4
with:
node-version: '18'
cache: yarn
registry-url: "https://npm.pkg.github.com"
- name: 🧶📥 Yarn install
env:
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
run: yarn --prefer-offline --frozen-lockfile
- name: 🔬 Kjør sjekk med prettier
run: yarn prettier --check .
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: 🔧💻 Setup node
uses: actions/setup-node@v4
with:
node-version: '18'
cache: yarn
registry-url: "https://npm.pkg.github.com"
- name: 🧶📥 Yarn install
env:
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
run: yarn --prefer-offline --frozen-lockfile
- name: 🧶🏗️ Yarn build
run: yarn build