Skip to content

Commit

Permalink
Update deps (#12)
Browse files Browse the repository at this point in the history
* build: update patch and minor deps

* chore: update major deps. Configure husky. Use nodeja v14 on ci

* chore: regenerate compiled action
  • Loading branch information
iniva authored May 27, 2022
1 parent 5c1d092 commit 8c51103
Show file tree
Hide file tree
Showing 8 changed files with 12,620 additions and 7,834 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- uses: actions/setup-node@v1
name: Setting Node.js Version
with:
node-version: '12.x'
node-version: '14.x'

- name: Installing dependencies
run: yarn install --frozen-lockfile
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
- uses: actions/setup-node@v1
name: Setting Node.js Version
with:
node-version: '12.x'
node-version: '14.x'

- name: Installing dependencies
run: yarn install --frozen-lockfile
Expand Down
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn test:lint
4 changes: 4 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

test $SKIP_PREPARE_COMMIT || (exec < /dev/tty && node_modules/.bin/cz --hook || true)
6 changes: 3 additions & 3 deletions dist/PayloadResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class PayloadResolver {
static async fromPath(path) {
let content;
try {
const filePath = path_1.resolve(process_1.cwd(), path);
const asyncReadFile = util_1.promisify(fs_1.readFile);
const filePath = (0, path_1.resolve)((0, process_1.cwd)(), path);
const asyncReadFile = (0, util_1.promisify)(fs_1.readFile);
content = await asyncReadFile(filePath, { encoding: 'utf8' });
}
catch (error) {
Expand All @@ -34,7 +34,7 @@ class PayloadResolver {
}
static async fromUrl(url) {
try {
const response = await got_1.default(url, { responseType: 'json' });
const response = await (0, got_1.default)(url, { responseType: 'json' });
return response.body;
}
catch (error) {
Expand Down
7 changes: 4 additions & 3 deletions dist/PayloadType.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.PayloadType = void 0;
class PayloadType {
_type;
static STRING = 'string';
static PATH = 'path';
static URL = 'url';
constructor(_type) {
this._type = _type;
}
Expand Down Expand Up @@ -30,6 +34,3 @@ class PayloadType {
}
}
exports.PayloadType = PayloadType;
PayloadType.STRING = 'string';
PayloadType.PATH = 'path';
PayloadType.URL = 'url';
Loading

0 comments on commit 8c51103

Please sign in to comment.