Skip to content

Commit

Permalink
fix(deps): bump @skypack/package-check to v0.2.2 and pin version (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m authored Oct 26, 2020
1 parent bd3e5e3 commit 0733cf1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
versioning-strategy: "increase"
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const path = require("path");
const core = require("@actions/core");

main();
Expand All @@ -6,15 +7,15 @@ async function main() {
const cwd = core.getInput("cwd");

try {
const args = [];
if (cwd) {
core.debug(`cwd input is set to "${cwd}". Changing working directory`);
process.chdir(cwd);
core.info(`working directory is ${process.cwd()}`);
core.info(`Setting working directory to ${path.resolve(cwd)}`);
args.push("--cwd", path.resolve(cwd));
}

const cli = require("@skypack/package-check");
const run = cli.run || cli.cli || cli.default;
await run();
await run(args);
} catch (error) {
core.error(error);
core.setFailed(error.message);
Expand Down
16 changes: 12 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "ISC",
"dependencies": {
"@actions/core": "^1.2.4",
"@skypack/package-check": "^0.1.0"
"@skypack/package-check": "0.2.2"
},
"devDependencies": {
"@semantic-release/git": "^9.0.0",
Expand Down

0 comments on commit 0733cf1

Please sign in to comment.