diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b2deabc..215a758 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - run: npm run pack + - run: | + npm install + npm run pack smoke-test: # make sure the action works on a clean machine without building runs-on: ubuntu-latest diff --git a/dist/index.js b/dist/index.js index 437ecce..4c932be 100644 --- a/dist/index.js +++ b/dist/index.js @@ -15764,7 +15764,7 @@ function getVersionIds(input) { if (input.hasOldestVersionQueryInfo()) { return version_1.getOldestVersions(input.owner, input.repo, input.packageName, input.numOldVersionsToDelete, input.token).pipe(operators_1.map(versionInfo => versionInfo.map(info => info.id))); } - return rxjs_1.throwError("Could not get packageVersionIds. Explicitly specify using the 'package-version-ids' input or provide the 'package-name' and 'delete-oldest' inputs to dynamically retrieve oldest versions"); + return rxjs_1.throwError("Could not get packageVersionIds. Explicitly specify using the 'package-version-ids' input or provide the 'package-name' and 'num-old-versions-to-delete' inputs to dynamically retrieve oldest versions"); } exports.getVersionIds = getVersionIds; function deleteVersions(input) { diff --git a/package.json b/package.json index 8cf9347..0aeaff3 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "format-check": "prettier --check **/*.ts", "lint": "eslint src/**/*.ts", "test": "jest", - "build": "npm run format-check && npm run lint && tsc", + "build": "npm run format-check && npm run lint && npm run test && tsc", "pack": "rm -rf ./lib ./dist && npm run build && ncc build" }, "repository": {