Skip to content

Commit ed90d20

Browse files
KenAJohandnorda
andauthored
Opprydding i Repo, flytting av gammel kode til nytt repo (navikt#1372)
Co-authored-by: Andreas Nordahl <[email protected]>
1 parent d1bd479 commit ed90d20

File tree

635 files changed

+2228
-51198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

635 files changed

+2228
-51198
lines changed

.github/workflows/build-publish.yml

+1-59
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
33

4-
name: Build, test and maybe publish
4+
name: Build -> Test -> Publish
55

66
on:
77
push:
@@ -39,12 +39,6 @@ jobs:
3939
run: yarn lint
4040
- name: Test
4141
run: yarn test
42-
- name: add access token to .env
43-
run: echo "ACCESS_TOKEN=${{ secrets.VERKTOYKASSE_INNHOLD_TOKEN }}" >> website/.env
44-
- name: add branch token to .env
45-
run: echo "BRANCH=HEAD" >> website/.env
46-
- name: Test gatsby-build (design.nav.no)
47-
run: yarn build:gatsby
4842

4943
publish-npm:
5044
needs: test-build
@@ -100,56 +94,4 @@ jobs:
10094
AUTH_TOKEN: ${{secrets.GIT_REPO}}
10195
- name: Publish to Github registry
10296
run: |
103-
rm lerna.json && cp utilities/lerna.json lerna.json
104-
git add . && git commit -m "tmp"
10597
yarn lerna publish --registry https://npm.pkg.github.com from-package --yes
106-
107-
publish-pages:
108-
needs: test-build
109-
runs-on: ubuntu-latest
110-
if: github.event_name == 'push'
111-
steps:
112-
- uses: actions/checkout@v2
113-
with:
114-
fetch-depth: "0"
115-
token: ${{secrets.GIT_REPO}}
116-
- uses: actions/setup-node@v1
117-
with:
118-
node-version: 14
119-
- name: Node-modules cache
120-
uses: actions/cache@v2
121-
id: node-cache
122-
with:
123-
path: "**/node_modules"
124-
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
125-
- name: Install deps
126-
if: steps.node-cache.outputs.cache-hit != 'true'
127-
run: yarn install
128-
- name: Gulp-build
129-
run: yarn boot
130-
- name: add access token to .env
131-
run: echo "ACCESS_TOKEN=${{ secrets.VERKTOYKASSE_INNHOLD_TOKEN }}" >> website/.env
132-
- name: add branch token to .env
133-
run: echo "BRANCH=HEAD" >> website/.env
134-
- name: Building Gatsby
135-
run: yarn build:gatsby
136-
- name: Building Storybook
137-
run: yarn build-storybook
138-
139-
- name: Deploy to Design.nav.no 🚀
140-
uses: JamesIves/[email protected]
141-
with:
142-
GITHUB_TOKEN: $NAV_DS_TOKEN
143-
BRANCH: gh-pages
144-
FOLDER: website/public
145-
env:
146-
NAV_DS_TOKEN: ${{secrets.GIT_REPO}}
147-
148-
- name: Deploy storybook to designsystem-repo
149-
uses: peaceiris/actions-gh-pages@v3
150-
with:
151-
personal_token: ${{secrets.GIT_REPO}}
152-
external_repository: navikt/designsystemet
153-
publish_dir: ./storybook-static
154-
user_name: "github-actions[bot]"
155-
user_email: "github-actions[bot]@users.noreply.github.com"

.github/workflows/publish_storybook.yml

-39
This file was deleted.

.github/workflows/vk-innhold-dev.yml

-47
This file was deleted.

.storybook/main.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ module.exports = {
44
return config;
55
},
66
devServer: { stats: "errors-only" },
7-
stories: [
8-
"../.storybook/**/*.stories.@(mdx)",
9-
"../packages/**/*.stories.@(js|jsx|ts|tsx|mdx)",
10-
"../@navikt/**/*.stories.@(js|jsx|ts|tsx|mdx)",
11-
],
7+
stories: ["../@navikt/**/*.stories.@(js|jsx|ts|tsx|mdx)"],
128
addons: [
139
"@storybook/addon-docs",
1410
"@storybook/addon-a11y",

.storybook/preview.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import "nav-frontend-core";
21
import "@navikt/ds-css/index.css";
32
import "@navikt/ds-css-internal/index.css";
43

.storybook/stories/introduction.stories.mdx

-35
This file was deleted.

0 commit comments

Comments
 (0)