Skip to content

Commit 74a4a8d

Browse files
committed
fix: build error
1 parent aa01d65 commit 74a4a8d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/update_medium.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ jobs:
5151
run: |
5252
mv postMedium.md postMedium.js
5353
yarn
54-
node postMedium.js $(echo "$FILES" | grep -v "^localization/")
54+
node postMedium.js $(echo "$FILES" | grep -v "localization/")

postMedium.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const axios = require("axios");
2-
const fs = require("fs");
3-
const fm = require("front-matter");
1+
import axios from "axios";
2+
import fs from "fs";
3+
import fm from"front-matter";
44

55
const args = process.argv.slice(2);
66
const MEDIUM_POST_API = `https://api.medium.com/v1/publications/${process.env.MEDIUM_PUBLICATION_ID}/posts`;

0 commit comments

Comments
 (0)