Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Commit 2fd468c

Browse files
update
1 parent 6fc551d commit 2fd468c

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.github/workflows/getFigmaImages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ jobs:
1919
- name: Install dependencies
2020
run: npm ci --no-audit --no-fund --include=dev --ignore-scripts
2121
- name: Get Figma Images
22-
run: node scripts/getFigmaImages.js '**/*.mdx'
22+
run: node scripts/getFigmaImages.js '**/*.mdx' > figmaImageNodeUrls.json
2323
- name: Log file content
2424
run: cat figmaImageNodeUrls.json

figmaImageNodeUrls.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

scripts/getFigmaImages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ const run = async () => {
3434
const pattern = /<img\s+[^>]*src="([^"]+)"[^>]*>/g
3535
// find matches in find
3636
const matches = await findMatches(pattern, files)
37-
// write the matches to a file
38-
await fs.writeFile('figmaImageNodeUrls.json', JSON.stringify(matches, null, 2))
37+
// output result
38+
console.log(JSON.stringify(matches, null, 2))
3939

4040
}
4141

0 commit comments

Comments
 (0)