refactor: convert project to typescript (#47)

* refactor: convert project to typescript

* fix: image as last argument of docker run

* ci: remove example as the build can act as example

* fix: set tokenEnv to RENOVATE_TOKEN

* fix: add trailing single quite to Docker --env arguments

* fix: mount volume with config file to Docker container

* chore: remove Prettier trailingComma on all

This puts it back at the default, which is es5 style.

* fix: correct package main to dist/indes.js

* fix: use @actions/exec to execute docker child process

* fix: use async/await for exec

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

* fix: use async/await in the runner

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
Jeroen de Bruijn 2020-05-04 07:19:15 +01:00 committed by GitHub
parent 47a19ef007
commit ec8a542458
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 160 additions and 61 deletions

View file

@ -3,6 +3,7 @@
"version": "1.0.5",
"description": "GitHub Action to run Renovate self-hosted.",
"private": true,
"main": "dist/index.js",
"scripts": {
"lint": "concurrently npm:lint-es",
"lint:fix": "concurrently npm:lint-es:fix",
@ -16,7 +17,8 @@
"release:changelog": "standard-version --dry-run --skip.commit=true --skip.tag=true",
"release:commit": "git commit --allow-empty -m \"chore(release): trigger release process [ci release]\"",
"release:message": "chalk -t \"Run {green.bold git push} to publish the release or {red.bold git reset HEAD^} to undo the release.\"",
"release": "run-s release:changelog release:commit release:message"
"release": "run-s release:changelog release:commit release:message",
"build": "tsc"
},
"repository": {
"type": "git",
@ -28,10 +30,14 @@
"url": "https://github.com/renovatebot/github-action/issues"
},
"homepage": "https://github.com/renovatebot/github-action#readme",
"dependencies": {},
"dependencies": {
"@actions/core": "1.2.4",
"@actions/exec": "1.0.4"
},
"devDependencies": {
"@commitlint/cli": "8.3.5",
"@commitlint/config-conventional": "8.3.4",
"@types/node": "13.13.4",
"@typescript-eslint/eslint-plugin": "2.30.0",
"@typescript-eslint/parser": "2.30.0",
"chalk-cli": "4.1.0",