Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
49c05ff
Initial commit
Cal-L Jan 19, 2022
adbf94c
Update package.json
Cal-L Jan 20, 2022
a8655b4
v1.4.0
Cal-L Jan 20, 2022
8682985
v1.0.0
Cal-L Jan 21, 2022
e02e8fe
v1.1.0
Cal-L Jan 21, 2022
0c51b3b
Update readme. Add design token modules.
Cal-L Feb 1, 2022
641d833
Adding brand, light and dark theme token json from Figma Tokens
georgewrmarshall Feb 8, 2022
ce12950
Reverting changelog
georgewrmarshall Feb 8, 2022
f943bbd
Merge pull request #8 from MetaMask/new-tokens
georgewrmarshall Feb 8, 2022
50c17ae
Merge branch 'main' of https://github.com/MetaMask/metamask-design-to…
Cal-L Feb 8, 2022
96cae40
Finalize with colors
Cal-L Feb 8, 2022
6cd817d
Fix tests
Cal-L Feb 8, 2022
3f6abd2
Fix tests
Cal-L Feb 8, 2022
18fda45
Fix test
Cal-L Feb 8, 2022
61610b8
Fix test
Cal-L Feb 8, 2022
b0b648f
Fix changelog
Cal-L Feb 8, 2022
1efc8a8
Merge pull request #7 from MetaMask/feature/4-setup-ds-repository
Cal-L Feb 8, 2022
14551f7
Update package name
Cal-L Feb 10, 2022
777dd50
Revert package version to `0.0.0`
rekmarks Feb 10, 2022
ac07943
1.0.0 (#13)
github-actions[bot] Feb 10, 2022
03fc069
Add issue template (#20)
Cal-L Feb 11, 2022
0bbec61
Adding css stylesheet containg color design tokens (#17)
georgewrmarshall Feb 11, 2022
bd8d00b
1.1.0 (#21)
github-actions[bot] Feb 12, 2022
94860e0
Adding storybook and design token documentation (#19)
georgewrmarshall Feb 16, 2022
e36b6af
token updates (#22)
georgewrmarshall Feb 16, 2022
f4b8ec9
1.2.0 (#23)
github-actions[bot] Feb 16, 2022
a31af6d
Changing theme class to data attribute (#30)
georgewrmarshall Feb 18, 2022
237d37d
1.3.0 (#31)
github-actions[bot] Feb 22, 2022
8962728
Token update generate library code (#39)
georgewrmarshall Mar 2, 2022
ce5e64f
1.3.1 (#43)
github-actions[bot] Mar 2, 2022
48d1f3a
Add overlay alternative color (#40)
GuillaumeRx Mar 2, 2022
bd5042b
1.4.0 (#45)
github-actions[bot] Mar 2, 2022
2938fd5
Bump overlay alternative opacity to 80% (#46)
GuillaumeRx Mar 8, 2022
acf8343
1.4.1 (#47)
github-actions[bot] Mar 8, 2022
e7b5ca6
Fix overlays alpha channel (#48)
GuillaumeRx Mar 10, 2022
6027863
1.4.2 (#49)
github-actions[bot] Mar 10, 2022
e6bc50d
Fixing secondary default color for CSS in JS (#57)
georgewrmarshall Mar 18, 2022
dfd4fc7
1.4.3 (#58)
github-actions[bot] Mar 18, 2022
86c5773
Add types and documentation to DS code library (#61)
Cal-L Mar 21, 2022
1af07df
1.4.4 (#62)
github-actions[bot] Mar 21, 2022
d203fab
Updating dark theme background and overlay colors (#72)
georgewrmarshall Mar 29, 2022
f468000
1.5.0 (#78)
github-actions[bot] Mar 30, 2022
8e29e81
Fixing descriptions (#79)
georgewrmarshall Mar 30, 2022
f88ffe8
1.5.1 (#80)
github-actions[bot] Mar 30, 2022
83921b1
Updating icon/default and text/alternative colors (#90)
georgewrmarshall Apr 12, 2022
35dc91c
Updated Light Theme Color Token descriptions to the latest (#86)
Akatori-Design Apr 26, 2022
9ce89d1
updated warning.default to #DA8301 (#99)
Akatori-Design Apr 26, 2022
6addce5
Adding icon alternative (#102)
Akatori-Design Apr 26, 2022
1415e90
CSS in JS description update (#104)
georgewrmarshall Apr 28, 2022
df909b8
Adding Circle CI and storybook builds for PRs (#105)
georgewrmarshall May 4, 2022
2d8bfe0
Adding inital typography tokens (#94)
georgewrmarshall May 6, 2022
526876b
1.6.0 (#122)
github-actions[bot] May 6, 2022
782681c
Fixing some case mistakes in figma token json (#123)
georgewrmarshall May 7, 2022
b402b16
Adding storybook pages to publish release action (#121)
georgewrmarshall May 9, 2022
f9c8ec6
1.6.1 (#128)
github-actions[bot] May 9, 2022
e35b429
Adding yarn setup (#129)
georgewrmarshall May 9, 2022
efff085
1.6.2 (#130)
github-actions[bot] May 9, 2022
6c480b2
Adding homepage (#131)
georgewrmarshall May 9, 2022
69adfca
1.6.3 (#132)
github-actions[bot] May 9, 2022
d6d5607
Setting storybook folder to root for gh-pages (#133)
georgewrmarshall May 9, 2022
71e09b3
1.6.4 (#134)
github-actions[bot] May 9, 2022
6a8b12f
[FIX] Update js font weight to string (#127)
Cal-L May 9, 2022
9096682
Update readme (#120)
georgewrmarshall May 9, 2022
1199d1e
1.6.5 (#136)
github-actions[bot] May 9, 2022
56e9844
Bump @metamask/auto-changelog from 2.5.0 to 2.6.0 (#142)
dependabot[bot] May 19, 2022
b013e0a
Fixing wrong token mappings & Naming Typo for Typography (#144)
Akatori-Design May 20, 2022
a71b30b
Updating typography tests and some token json (#147)
georgewrmarshall May 24, 2022
69afa19
Updating readme with npm and storybook badges (#150)
georgewrmarshall Jun 6, 2022
4024378
Fix for readme badge to show correct version (#163)
georgewrmarshall Jun 6, 2022
a1d7ae9
Adding themes to token architecture (#148)
georgewrmarshall Jun 16, 2022
6fdc265
1.7.0 (#175)
github-actions[bot] Jun 21, 2022
4356089
Bump @metamask/auto-changelog from 2.6.0 to 2.6.1 (#178)
dependabot[bot] Jun 22, 2022
4dcbd6f
Adding shadows to design tokens (#137)
georgewrmarshall Jun 24, 2022
13d1b24
1.8.0 (#188)
github-actions[bot] Jul 5, 2022
83d664c
Updated Light Theme Shadows to match Storybook (#195)
Akatori-Design Jul 28, 2022
5c3bfde
Replaced Heading-SM-Regular by Body-LG-Medium (#194)
SaraCheikh Aug 4, 2022
3028311
Upgrading storybook to 6.5 (#212)
georgewrmarshall Aug 8, 2022
e34042a
210: update typography line height tokens to be REM based (#211)
garrettbear Aug 9, 2022
f9a3c7d
1.9.0 (#218)
github-actions[bot] Aug 9, 2022
53ad2eb
DS-214: add fonts and font awesome to docs (#217)
garrettbear Aug 9, 2022
89a2c93
196: update gh pages storybook build (#226)
garrettbear Aug 23, 2022
aff4d50
1.9.1 (#227)
github-actions[bot] Aug 23, 2022
5368e9e
Feat/196/fix gh pages font (#228)
garrettbear Aug 24, 2022
c5ae7e2
230 revert to old storybook build and update main branch storybook de…
garrettbear Aug 24, 2022
5ecf026
Hover and pressed color tokens (#233)
SaraCheikh Sep 7, 2022
e576de5
Adding test network and flask color tokens (#223)
georgewrmarshall Sep 7, 2022
cff2537
Updating descriptions and deprecated tags (#235)
georgewrmarshall Sep 7, 2022
80f7241
1.10.0 (#236)
github-actions[bot] Sep 8, 2022
2490f09
rename action (#239)
garrettbear Oct 28, 2022
28b08ea
added sepolia test network colors (#243)
NidhiKJha Nov 3, 2022
f8923fe
1.11.0 (#247)
github-actions[bot] Nov 15, 2022
8bda95a
Adding storybook a11y plugin (#258)
georgewrmarshall Nov 29, 2022
911b480
Updating primary, error and info colors to meet AA accessibility stan…
georgewrmarshall Nov 30, 2022
3f390d3
1.11.1 (#262)
github-actions[bot] Nov 30, 2022
49c797a
Add body medium font weight (#486)
garrettbear Jun 16, 2023
bc77705
Hover & Pressed color updates (#487)
Akatori-Design Jun 28, 2023
f5d1b69
1.12.0 (#489)
github-actions[bot] Jun 28, 2023
e203cda
Bump @metamask/auto-changelog from 2.6.1 to 3.1.0 (#248)
dependabot[bot] Jun 28, 2023
609c06a
Bump @metamask/auto-changelog from 3.1.0 to 3.2.0 (#497)
dependabot[bot] Jul 17, 2023
35b7430
Bump @metamask/auto-changelog from 3.2.0 to 3.3.0 (#516)
dependabot[bot] Sep 28, 2023
16744bb
Bump @babel/traverse from 7.18.11 to 7.23.2 (#532)
dependabot[bot] Oct 18, 2023
b80e393
Bump json5 from 1.0.1 to 1.0.2 (#534)
dependabot[bot] Oct 18, 2023
1db0778
Bump loader-utils from 1.4.0 to 1.4.2 (#533)
dependabot[bot] Oct 18, 2023
953ba2a
Bump decode-uri-component from 0.2.0 to 0.2.2 (#535)
dependabot[bot] Oct 18, 2023
e2e1cc6
Bump @metamask/auto-changelog from 3.3.0 to 3.4.1 (#541)
dependabot[bot] Oct 24, 2023
7088ed3
Bump @metamask/auto-changelog from 3.4.1 to 3.4.2 (#542)
dependabot[bot] Oct 25, 2023
f066141
Bump @metamask/auto-changelog from 3.4.2 to 3.4.3 (#544)
dependabot[bot] Nov 7, 2023
61db266
ci: remove broken require-additional-reviewer workflow (#537)
legobeat Dec 8, 2023
a3cfdc9
bump webpack@4, webpack@5 (#536)
legobeat Dec 8, 2023
0162106
Bump @metamask/auto-changelog from 3.4.3 to 3.4.4 (#571)
dependabot[bot] Dec 20, 2023
6d83770
ci: fix build-test workflow (#539)
legobeat Jan 17, 2024
261f00a
devDeps: storybook v7 (#538)
legobeat Jan 17, 2024
102884a
Adding brand colors to CSSinJS exports (#582)
georgewrmarshall Jan 18, 2024
37dd85a
Enhancements to CircleCI Script and Storybook Build (#583)
georgewrmarshall Jan 18, 2024
e1bdb02
Revert "Adding brand colors to CSSinJS exports" (#589)
georgewrmarshall Jan 19, 2024
c28addf
Upgrading storybook from 7.5 to 7.6 (#592)
georgewrmarshall Jan 22, 2024
a78304d
Updating documentation (#593)
georgewrmarshall Jan 23, 2024
e9e3efd
Added sets of hover& pressed tokens. Also updated warning/success/inv…
Akatori-Design Jan 24, 2024
dcffe45
Refactoring the brand color object (#585)
georgewrmarshall Jan 24, 2024
69727ef
Adding CSS and JS token display in storybook (#594)
georgewrmarshall Jan 24, 2024
3baf2f5
1.13.0 (#596)
github-actions[bot] Jan 24, 2024
345e6be
Dependencies upgrade and module template sync (#601)
georgewrmarshall Feb 1, 2024
57be95e
2.0.0 (#605)
github-actions[bot] Feb 1, 2024
5ba38ee
chore: updating package.json and contraints.prop config to allow for …
georgewrmarshall Feb 2, 2024
b981ec0
2.0.1 (#610)
github-actions[bot] Feb 2, 2024
5712f36
bug: fix css exports (#614)
georgewrmarshall Feb 7, 2024
d8a71bf
2.0.2 (#617)
github-actions[bot] Feb 7, 2024
89dbad2
chore: updating package.json css path (#622)
georgewrmarshall Feb 9, 2024
6b6652b
2.0.3 (#623)
github-actions[bot] Feb 9, 2024
2ebc9cf
feat: adding data theme light attribute to stylesheet to provide dyna…
georgewrmarshall Feb 16, 2024
048addd
2.1.0 (#628)
github-actions[bot] Feb 16, 2024
83462ce
Bump ip from 2.0.0 to 2.0.1 (#630)
dependabot[bot] Feb 21, 2024
f7599df
fix: move data attribute to light theme variables (#631)
georgewrmarshall Feb 21, 2024
37ecfac
2.1.1 (#632)
github-actions[bot] Feb 21, 2024
57e4e2b
chore: aligning release docs with latest (#634)
georgewrmarshall Feb 27, 2024
38cd7af
Enabling MetaMask security code scanner (#635)
metamaskbot Mar 6, 2024
adbd99b
Bump tar from 6.2.0 to 6.2.1 (#652)
dependabot[bot] Apr 15, 2024
42c921f
Bump express from 4.18.2 to 4.19.2 (#638)
dependabot[bot] Apr 15, 2024
f1c250f
Bump webpack-dev-middleware from 6.1.1 to 6.1.2 (#636)
dependabot[bot] Apr 15, 2024
b89b2c8
chore: adding initial json generated from figma (#665)
georgewrmarshall Apr 25, 2024
8cf62bf
fix: build and aligns with module template (#667)
georgewrmarshall Apr 25, 2024
0fc34a5
fix: css theme variables doc display (#672)
georgewrmarshall Apr 25, 2024
6b57906
chore: upgrade lavamoat (#670)
georgewrmarshall Apr 26, 2024
e12eb21
chore: adding initial json generated from figma variables (#673)
georgewrmarshall Apr 26, 2024
dacbd1e
chore: upgrading storybook to version 8 (#674)
georgewrmarshall Apr 29, 2024
5c207c6
chore: refactoring css and improving build to adhere to workspace con…
georgewrmarshall May 3, 2024
e1402e5
chore: cleaning json token names (#679)
georgewrmarshall May 3, 2024
3516c91
docs: updating readme to add tooling section that links to eslint-plu…
georgewrmarshall May 17, 2024
d74ed2c
chore: upgrading storybook to 8.1.2 (#690)
georgewrmarshall May 21, 2024
633ba4d
chore: refactoring color swatch component and css stories to use css …
georgewrmarshall May 22, 2024
6d1163c
fix: fix lint errors in utils (#699)
brianacnguyen May 23, 2024
f725502
3.0.0 (#697)
github-actions[bot] May 23, 2024
d959a0d
fix: updating brand color figma json (#702)
georgewrmarshall May 29, 2024
6c8d02d
chore: updating doc components and helpers (#706)
georgewrmarshall May 29, 2024
384bdb1
chore: upgrading storybook to 8.1.4 (#703)
georgewrmarshall May 30, 2024
1a9e089
chore: adding overlay.inverse colors to json (#715)
georgewrmarshall May 30, 2024
bf61946
chore: updated css variables based on updated json (#708)
brianacnguyen May 30, 2024
d1a5b4e
chore: updated js variables based on updated json (#709)
brianacnguyen May 30, 2024
1277310
4.0.0 (#716)
github-actions[bot] May 31, 2024
04eeab5
feat: Created Unit Tests for CSS Color Variables Alignment with Figma…
brianacnguyen Jun 4, 2024
f703452
feat: add dark/light classname (#729)
garrettbear Sep 5, 2024
54be7a6
chore: updating lavamoat allow-scripts dependencies (#734)
georgewrmarshall Oct 11, 2024
72830f6
chore: updating dependencies (#739)
georgewrmarshall Nov 5, 2024
d81fd5a
chore: adding license (#738)
georgewrmarshall Nov 5, 2024
f718c0f
chore: updating readme (#742)
georgewrmarshall Nov 8, 2024
c711fb9
chore: aligning dependencies with the metamask-design-system (#747)
georgewrmarshall Nov 8, 2024
1a41bc2
4.1.0 (#749)
github-actions[bot] Nov 8, 2024
cde1e1d
Merge remote-tracking branch 'design-tokens/main' into fix/88/migrate…
georgewrmarshall Nov 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions merged-packages/design-tokens/.babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"sourceType": "unambiguous",
"presets": [
[
"@babel/preset-env",
{
"targets": {
"chrome": 100,
"safari": 15,
"firefox": 91
}
}
],
"@babel/preset-typescript",
"@babel/preset-react"
],
"plugins": []
}
68 changes: 68 additions & 0 deletions merged-packages/design-tokens/.circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
version: 2.1

executors:
node-browsers:
docker:
- image: cimg/node:18.20-browsers

workflows:
storybook:
jobs:
- prep-deps
- prep-build-storybook:
requires:
- prep-deps
- job-announce-storybook:
requires:
- prep-build-storybook

jobs:
prep-deps:
executor: node-browsers
steps:
- checkout
- restore_cache:
key: dependency-cache-v1-{{ checksum "yarn.lock" }}
- run:
name: Install deps
command: |
yarn install
- save_cache:
key: dependency-cache-v1-{{ checksum "yarn.lock" }}
paths:
- node_modules/
- run:
name: Postinstall
command: |
yarn setup
- persist_to_workspace:
root: .
paths:
- node_modules

prep-build-storybook:
executor: node-browsers
steps:
- checkout
- attach_workspace:
at: .
- run:
name: build:storybook
command: yarn build-storybook
- persist_to_workspace:
root: .
paths:
- storybook-static

job-announce-storybook:
executor: node-browsers
steps:
- checkout
- attach_workspace:
at: .
- store_artifacts:
path: storybook-static
destination: storybook
- run:
name: build:announce
command: ./.circleci/scripts/metamaskbot-build-announce.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/usr/bin/env node
const fetch = require('node-fetch');

start().catch((error) => {
console.error(error);
process.exit(1);
});

async function start() {
const {
GITHUB_COMMENT_TOKEN,
CIRCLE_PULL_REQUEST,
CIRCLE_SHA1,
CIRCLE_WORKFLOW_JOB_ID,
} = process.env;

if (!CIRCLE_PULL_REQUEST) {
console.warn(`No pull request detected for commit "${CIRCLE_SHA1}"`);
return;
}

const CIRCLE_PR_NUMBER = CIRCLE_PULL_REQUEST.split('/').pop();
const SHORT_SHA1 = CIRCLE_SHA1.slice(0, 7);
const BUILD_LINK_BASE = `https://output.circle-artifacts.com/output/job/${CIRCLE_WORKFLOW_JOB_ID}/artifacts/0`;

const storybookUrl = `${BUILD_LINK_BASE}/storybook/index.html`;
const storybookLink = `<a href="${storybookUrl}">Storybook</a>`;

const commentBody = `Builds ready [${SHORT_SHA1}]\n\nStorybook: ${storybookLink}`;

const JSON_PAYLOAD = JSON.stringify({ body: commentBody });
const POST_COMMENT_URI = `https://api.github.com/repos/metamask/design-tokens/issues/${CIRCLE_PR_NUMBER}/comments`;

console.log(`Posting to: ${POST_COMMENT_URI}`);

const response = await fetch(POST_COMMENT_URI, {
method: 'POST',
body: JSON_PAYLOAD,
headers: {
'User-Agent': 'metamaskbot',
Authorization: `token ${GITHUB_COMMENT_TOKEN}`,
},
});
if (!response.ok) {
throw new Error(`Post comment failed with status '${response.statusText}'`);
}
}
21 changes: 21 additions & 0 deletions merged-packages/design-tokens/.depcheckrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"ignores": [
"@lavamoat/allow-scripts",
"@lavamoat/preinstall-always-fail",
"@metamask/auto-changelog",
"@types/*",
"@yarnpkg/types",
"prettier-plugin-packagejson",
"ts-node",
"@yarnpkg/core",
"@yarnpkg/cli",
"clipanion",
"@yarnpkg/fslib",
"@chromatic-com/storybook",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-links",
"@storybook/blocks",
"@storybook/test"
]
}
9 changes: 9 additions & 0 deletions merged-packages/design-tokens/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
51 changes: 51 additions & 0 deletions merged-packages/design-tokens/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
module.exports = {
root: true,

extends: ['@metamask/eslint-config', 'plugin:storybook/recommended'],

overrides: [
{
files: ['*.ts'],
extends: ['@metamask/eslint-config-typescript'],
},

{
files: ['*.js'],
parserOptions: {
sourceType: 'script',
},
extends: ['@metamask/eslint-config-nodejs'],
},

{
files: ['yarn.config.cjs'],
parserOptions: {
sourceType: 'script',
ecmaVersion: 2020,
},
settings: {
jsdoc: {
mode: 'typescript',
},
},
extends: ['@metamask/eslint-config-nodejs'],
},

{
files: ['*.test.ts', '*.test.js'],
extends: [
'@metamask/eslint-config-jest',
'@metamask/eslint-config-nodejs',
],
},
],

ignorePatterns: [
'!.eslintrc.js',
'!.prettierrc.js',
'dist/',
'storybook-static/',
'.yarn/',
'docs/utils/getCSSVariablesFromStylesheet.ts',
],
};
8 changes: 8 additions & 0 deletions merged-packages/design-tokens/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
* text=auto

yarn.lock linguist-generated=false

# yarn v3
# See: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
/.yarn/releases/** binary
/.yarn/plugins/** binary
4 changes: 4 additions & 0 deletions merged-packages/design-tokens/.github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Lines starting with '#' are comments.
# Each line is a file pattern followed by one or more owners.

* @MetaMask/engineering
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: General issue
about: For any issues
title: ''
labels: ''
assignees: ''
---

### **Description**

Describe the task. What does this aim to solve?

### **Technical Details**

- Implementation details
- Insight to what needs to be done
- Etc.

### **Acceptance Criteria**

- Check with product on metrics
- Cases to satisfy
- XYZ should work
- Etc.

### **References**

- References go here.
- Issue numbers. Links.
- Slack threads.
- Etc.
48 changes: 48 additions & 0 deletions merged-packages/design-tokens/.github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## **Description**

<!--
Write a short description of the changes included in this pull request, also include relevant motivation and context. Have in mind the following questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->

## **Related issues**

Fixes:

## **Manual testing steps**

1. Go to this page...
2.
3.

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [ ] I’ve followed [MetaMask Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've clearly explained what problem this PR is solving and how it is solved.
- [ ] I've linked related issues
- [ ] I've included manual testing steps
- [ ] I've included screenshots/recordings if applicable
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors.
- [ ] I’ve properly set the pull request status:
- [ ] In case it's not yet "ready for review", I've set it to "draft".
- [ ] In case it's "ready for review", I've changed it from "draft" to "non-draft".

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
15 changes: 15 additions & 0 deletions merged-packages/design-tokens/.github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'daily'
time: '06:00'
allow:
- dependency-name: '@metamask/*'
target-branch: 'main'
versioning-strategy: 'increase-if-necessary'
open-pull-requests-limit: 10
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build and Deploy Storybook

on:
workflow_call:
secrets:
PUBLISH_STORYBOOK_TOKEN:
required: true

jobs:
build-deploy-storybook:
permissions:
contents: write
runs-on: ubuntu-latest
environment: github-pages
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install npm dependencies
run: yarn --immutable
- name: Run build script
run: yarn build-storybook
- name: Deploy to `storybook-static` directory of `gh-pages` branch
uses: peaceiris/actions-gh-pages@de7ea6f8efb354206b205ef54722213d99067935
with:
# This PUBLISH_STORYBOOK_TOKEN needs to be manually set per-repository.
# Look in the repository settings under "Environments", and set this token in the github-pages environment.
personal_token: ${{ secrets.PUBLISH_STORYBOOK_TOKEN }}
publish_dir: ./storybook-static
destination_dir: storybook-static
Loading