diff --git a/scripts/getTestingTags.js b/scripts/getTestingTags.js index 54e77f56f..9c4b3ce78 100644 --- a/scripts/getTestingTags.js +++ b/scripts/getTestingTags.js @@ -12,8 +12,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag governing permissions and limitations under the License. */ -const { Octokit } = require("@octokit/rest"); -const semver = require("semver"); +import { Octokit } from "@octokit/rest"; +import semver from "semver"; // Outputs the production version of Alloy. This is calculated // by looking up the latest release in Github that is neither @@ -30,8 +30,8 @@ const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN, }); -module.exports = () => { - return octokit.paginate( +export default () => + octokit.paginate( octokit.repos.listReleases, { owner: "adobe", @@ -50,4 +50,3 @@ module.exports = () => { return prodReleasesToTest; }, ); -};