Skip to content

Commit

Permalink
task: add .nvmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
skibinska committed Jun 25, 2024
1 parent e7f15d8 commit 421e7b3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create-tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
contents: write

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v2.4.0
uses: actions/setup-node@v4

- name: Install Dependencies
run: npm install
Expand All @@ -27,6 +27,6 @@ jobs:
run: npm run build

# Add files that were created during a run, e.g. created files from style dictionary or token-transformer.
- uses: stefanzweifel/git-auto-commit-action@v4
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update Tokens
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.17.0
4 changes: 2 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function run() {
platforms: {
css: {
transformGroup: 'tokens-studio',
transforms: ["attribute/themeable", "name/kebab", "custom/rem"],
transforms: ["custom/attribute/themeable", "name/kebab", "custom/rem"],
buildPath: 'generatedTokens/css/',
files: [
{
Expand All @@ -68,7 +68,7 @@ async function run() {
const sd = new StyleDictionary(cfg);

sd.registerTransform({
name: "attribute/themeable",
name: "custom/attribute/themeable",
type: "attribute",
transform: (token) => transformAttributeThemeable(token, themeableSets, sd.tokens),
});
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"description": "Design system for Wellcome and Wellcome Collection products",
"main": "index.js",
"type": "module",
"engines": {
"node": ">=18.17.0",
"npm": ">=9.6.7"
},
"repository": {
"type": "git",
"url": "git+https://github.com/wellcometrust/wellcome-design-system.git"
Expand Down

0 comments on commit 421e7b3

Please sign in to comment.