We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa01d65 commit 74a4a8dCopy full SHA for 74a4a8d
.github/workflows/update_medium.yml
@@ -51,4 +51,4 @@ jobs:
51
run: |
52
mv postMedium.md postMedium.js
53
yarn
54
- node postMedium.js $(echo "$FILES" | grep -v "^localization/")
+ node postMedium.js $(echo "$FILES" | grep -v "localization/")
postMedium.md
@@ -1,6 +1,6 @@
1
-const axios = require("axios");
2
-const fs = require("fs");
3
-const fm = require("front-matter");
+import axios from "axios";
+import fs from "fs";
+import fm from"front-matter";
4
5
const args = process.argv.slice(2);
6
const MEDIUM_POST_API = `https://api.medium.com/v1/publications/${process.env.MEDIUM_PUBLICATION_ID}/posts`;
0 commit comments