From 4e570ec8f59d9ea5c624120ada38820fa03202ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Sch=C3=BCtte?= Date: Mon, 16 Dec 2024 11:24:01 +0100 Subject: [PATCH] Switch to ESM --- .github/workflows/test.yml | 2 ++ package.json | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 25e3c6e..03cae86 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,6 +24,8 @@ jobs: node-version: ${{ matrix.version }} cache: 'npm' - run: npm ci + - run: npm run build + - run: cp dist/index.js index.js - uses: ./ with: token: ${{ github.token }} diff --git a/package.json b/package.json index 2668850..e745865 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "purge-deprecated-workflow-runs", "description": "Delete github workflow runs that don't have a corresponding workflow (anymore) from the current repository. Optionally delete cancelled, failed or skipped workflow runs.", "main": "dist/index.js", + "type": "module", "scripts": { "build": "npx @vercel/ncc build", "postbuild": "sed 's+index.js+dist/index.js+g' action.yml > action.yml.built && mv action.yml.built action.yml",