Skip to content

Commit

Permalink
🎉 Create eds-tokens-sync, eds-tokens-build and add tokens from Figma …
Browse files Browse the repository at this point in the history
…to eds-tokens (#3447)

* feat(eds-tokens): ✨ add tokens from Figma variables

* feat(eds-tokens): ✨ create sync-tokens-to-figma cli and use it in eds-tokens

* feat(eds-tokens): ✨ create eds-tokens-build cli and use it in eds-tokens

* feat: ✨ add all packages to scopes for better conventional commits

* chore: 📦 update actions/setup-node and actions/cache to use @v4

* build: 🔧 update engines to use newer pnpm and node versions

* chore: use the latest stable version of node 18 (18.20.2)
  • Loading branch information
torleifhalseth authored May 30, 2024
1 parent d61c056 commit f4ede60
Show file tree
Hide file tree
Showing 215 changed files with 51,237 additions and 323 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
git checkout --progress --force -B $BRANCH refs/remotes/origin/$BRANCH
- id: cache-pnpm-store
name: Cache pnpm-store
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.pnpm-store
Expand All @@ -88,7 +88,7 @@ jobs:
run: node_modules/.bin/pnpm i --force
- id: cache-files
name: Cache files
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- 'packages/eds-core-react/**'
- 'packages/eds-lab-react/**'
- 'packages/eds-data-grid-react/**'
- 'packages/eds-tokens-sync/**'
- 'packages/eds-tokens-build/**'
- 'packages/eds-tokens/**'
- 'packages/eds-icons/**'
push:
Expand All @@ -18,19 +20,23 @@ env:

jobs:
setup:
uses: equinor/design-system/.github/workflows/_setup.yml@develop
uses: ./.github/workflows/_setup.yml
secrets: inherit
with:
cacheKey: ${{ github.sha }}
checkout_paths: packages/eds-core-react packages/eds-tokens packages/eds-icons packages/eds-lab-react packages/eds-data-grid-react packages/eds-utils
checkout_paths: packages/eds-core-react packages/eds-tokens-sync packages/eds-tokens-build packages/eds-tokens packages/eds-icons packages/eds-lab-react packages/eds-data-grid-react packages/eds-utils
packages:
name: Process packages
runs-on: ubuntu-latest
needs: setup
steps:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '18.20.2'
- name: Use "setup" cache
id: setup-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_assets_to_cdn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
repository: 'equinor/design-system-cdn'
ref: main
ssh-key: ${{ secrets.CDN_REPO_PRIVATE_KEY }}
- name: Az CLI login 🔑 # Using federated credential
- name: Az CLI login 🔑 # Using federated credential
uses: azure/login@v1
with:
client-id: d58b2e85-2d34-4cdb-ad70-5f2b767dd8e2
Expand All @@ -56,7 +56,7 @@ jobs:
if: github.event.inputs.environment == 'production'
needs: [copy-files]
name: Purge cdn
uses: equinor/design-system/.github/workflows/_purge_cdn.yaml@develop
uses: ./.github/workflows/_purge_cdn.yaml
secrets: inherit
with:
environment: production
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/publish_core_react.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ env:

jobs:
setup:
uses: equinor/design-system/.github/workflows/_setup.yml@develop
uses: ./.github/workflows/_setup.yml
secrets: inherit
with:
cacheKey: ${{ github.sha }}
Expand All @@ -38,15 +38,15 @@ jobs:
steps:
- name: Use "setup" cache
id: setup-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
~/.pnpm-store
key: ${{ github.sha }}
- name: Use "dist" cache
id: dist-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand All @@ -71,7 +71,7 @@ jobs:
steps:
- name: Use "dist" cache
id: dist-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand All @@ -95,7 +95,7 @@ jobs:
steps:
- name: Use "dist" cache
id: dist-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand All @@ -121,7 +121,7 @@ jobs:
steps:
- name: Use cache with storybook files
id: use-cache-storybook
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand All @@ -145,7 +145,7 @@ jobs:
if: github.event.inputs.environment == 'production'
needs: [publish-storybook]
name: Purge cdn
uses: equinor/design-system/.github/workflows/_purge_cdn.yaml@develop
uses: ./.github/workflows/_purge_cdn.yaml
secrets: inherit
with:
environment: production
10 changes: 5 additions & 5 deletions .github/workflows/publish_data_grid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:

jobs:
setup:
uses: equinor/design-system/.github/workflows/_setup.yml@develop
uses: ./.github/workflows/_setup.yml
secrets: inherit
with:
cacheKey: ${{ github.sha }}
Expand All @@ -29,15 +29,15 @@ jobs:
steps:
- name: Use "setup" cache
id: setup-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
~/.pnpm-store
key: ${{ github.sha }}
- name: Use "dist" cache
id: dist-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand All @@ -62,7 +62,7 @@ jobs:
steps:
- name: Use "dist" cache
id: dist-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand All @@ -86,7 +86,7 @@ jobs:
steps:
- name: Use cache with storybook files
id: use-cache-storybook
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish_icons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:

jobs:
setup:
uses: equinor/design-system/.github/workflows/_setup.yml@develop
uses: ./.github/workflows/_setup.yml
secrets: inherit
with:
cacheKey: ${{ github.sha }}-setup-icons
Expand All @@ -25,15 +25,15 @@ jobs:
steps:
- name: Use "setup" cache
id: setup-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
~/.pnpm-store
key: ${{ github.sha }}-setup-icons
- name: Use "dist" cache
id: dist-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand All @@ -55,7 +55,7 @@ jobs:
steps:
- name: Use "dist" cache
id: dist-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish_lab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:

jobs:
setup:
uses: equinor/design-system/.github/workflows/_setup.yml@develop
uses: ./.github/workflows/_setup.yml
secrets: inherit
with:
cacheKey: ${{ github.sha }}
Expand All @@ -29,15 +29,15 @@ jobs:
steps:
- name: Use "setup" cache
id: setup-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
~/.pnpm-store
key: ${{ github.sha }}
- name: Use "dist" cache
id: dist-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand All @@ -62,7 +62,7 @@ jobs:
steps:
- name: Use "dist" cache
id: dist-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand All @@ -86,7 +86,7 @@ jobs:
steps:
- name: Use "dist" cache
id: dist-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand All @@ -110,7 +110,7 @@ jobs:
steps:
- name: Use cache with storybook files
id: use-cache-storybook
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish_storybook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:

jobs:
setup:
uses: equinor/design-system/.github/workflows/_setup.yml@develop
uses: ./.github/workflows/_setup.yml
secrets: inherit
with:
cacheKey: ${{ github.sha }}
Expand All @@ -36,15 +36,15 @@ jobs:
steps:
- name: Use "setup" cache
id: get-setup-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
~/.pnpm-store
key: ${{ github.sha }}
- name: Use "dist" cache
id: use-dist-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand All @@ -67,7 +67,7 @@ jobs:
steps:
- name: Use cache with storybook files
id: use-cache-storybook
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand All @@ -91,7 +91,7 @@ jobs:
if: github.event.inputs.environment == 'production'
needs: [publish-storybook]
name: Purge cdn
uses: equinor/design-system/.github/workflows/_purge_cdn.yaml@develop
uses: ./.github/workflows/_purge_cdn.yaml
secrets: inherit
with:
environment: production
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish_storybook_data_grid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:

jobs:
setup:
uses: equinor/design-system/.github/workflows/_setup.yml@develop
uses: ./.github/workflows/_setup.yml
secrets: inherit
with:
cacheKey: ${{ github.sha }}
Expand All @@ -19,15 +19,15 @@ jobs:
steps:
- name: Use "setup" cache
id: get-setup-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
~/.pnpm-store
key: ${{ github.sha }}
- name: Use "dist" cache
id: use-dist-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand All @@ -48,7 +48,7 @@ jobs:
steps:
- name: Use cache with storybook files
id: use-cache-storybook
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish_storybook_lab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:

jobs:
setup:
uses: equinor/design-system/.github/workflows/_setup.yml@develop
uses: ./.github/workflows/_setup.yml
secrets: inherit
with:
cacheKey: ${{ github.sha }}
Expand All @@ -19,15 +19,15 @@ jobs:
steps:
- name: Use "setup" cache
id: get-setup-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
~/.pnpm-store
key: ${{ github.sha }}
- name: Use "dist" cache
id: use-dist-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand All @@ -48,7 +48,7 @@ jobs:
steps:
- name: Use cache with storybook files
id: use-cache-storybook
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./*
Expand Down
Loading

0 comments on commit f4ede60

Please sign in to comment.