Skip to content

Commit

Permalink
fix: oppdater siste fra main
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianulv23 committed Sep 10, 2024
2 parents 79e2499 + 87ea337 commit a4b55eb
Show file tree
Hide file tree
Showing 567 changed files with 9,321 additions and 6,894 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/ny-oppgave.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: Ny oppgave
name: Forslag
about: Du har en idé til noe som kan endres på eller legges til i designsystemet
title: ""
labels: "enhancement"
labels: "Forslag"
assignees: ""
---

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/rapporter-en-bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Rapporter en bug
about: Du har funnet en bug i designsystemet
title: "Feil: "
labels: "\U0001F41D bug"
labels: "\U0001F41D Bug"
assignees: ""
---

Expand Down
83 changes: 83 additions & 0 deletions .github/workflows/alpha-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Publish alpha release

on:
push:
branches:
- alpha-*

jobs:
build-and-publish:
name: Build and publish alpha
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[ci skip release]') }}
permissions:
actions: write
contents: write
packages: write
deployments: write
steps:
- name: Checkout branch
uses: actions/checkout@v3
with:
token: ${{ secrets.BOT_PUBLISH_TOKEN }}
fetch-depth: "0" # fetch entire git history

- name: Fetch version tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

- name: Configure CI Git User
run: |
git config --global user.name '@fremtind-bot'
git config --global user.email '[email protected]'
git remote set-url origin https://fremtind-bot:[email protected]/fremtind/jokul
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: |
- args: [--global, lerna-clean-changelogs-cli@^2.0.18]
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"

- name: Install Packages
run: |
pnpm install --frozen-lockfile
- name: Monorepo Runner Cache
uses: actions/cache@v3
id: nx-cache
with:
path: .nx
key: nx-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.sha }}
restore-keys: |
nx-${{ hashFiles('pnpm-lock.yaml') }}-
- name: Try logout
continue-on-error: true
run: npm logout

- name: Verify release is needed
id: lerna_changed
continue-on-error: true
run: pnpm version:check

- name: Authenticate with Registry
if: steps.lerna_changed.outcome == 'success'
run: |
echo "registry=http://registry.npmjs.org/" >> .npmrc
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish packages to NPM
if: steps.lerna_changed.outcome == 'success' # only run if there are changes to publish
run: pnpm release:alpha --yes
env:
GH_TOKEN: ${{ secrets.BOT_PUBLISH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.BOT_PUBLISH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 4 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
schedule:
- cron: "0 18 * * 3"

run-name: Sjekker kodekvalitet for commit ${{ github.sha }}

jobs:
analyze:
name: Analyze
Expand All @@ -30,11 +32,11 @@ jobs:
uses: actions/checkout@v3

- name: Initialize CodeQL
if: "!contains(github.event.head_commit.message, '[ci skip release]')"
if: ${{ !contains(github.event.head_commit.message, '[ci skip release]') }}
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
if: "!contains(github.event.head_commit.message, '[ci skip release]')"
if: ${{ !contains(github.event.head_commit.message, '[ci skip release]') }}
uses: github/codeql-action/analyze@v2
Loading

0 comments on commit a4b55eb

Please sign in to comment.