This commit is contained in:
Trent Jones
2020-02-29 13:26:10 -06:00
parent 933feb0fd6
commit 9625970c51
3 changed files with 5 additions and 3 deletions

View File

@@ -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

2
dist/index.js vendored
View File

@@ -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) {

View File

@@ -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": {