test fix
This commit is contained in:
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -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
2
dist/index.js
vendored
@@ -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) {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user