Skip to content

Commit

Permalink
Move script to ES modules. (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
dompuiu authored May 17, 2024
1 parent 702bf4f commit 02bcf8a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/getTestingTags.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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",
Expand All @@ -50,4 +50,3 @@ module.exports = () => {
return prodReleasesToTest;
},
);
};

0 comments on commit 02bcf8a

Please sign in to comment.