Skip to content

Commit

Permalink
Merge pull request #21 from banyan/without-docker
Browse files Browse the repository at this point in the history
Faster build without docker
  • Loading branch information
banyan authored Feb 2, 2020
2 parents d7ef3c2 + 4e5b0fe commit 3f82b43
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
5 changes: 0 additions & 5 deletions Dockerfile

This file was deleted.

6 changes: 2 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ inputs:
description: 'A path for config file'
default: '.github/auto-label.json'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.configPath }}
using: 'node12'
main: 'dist/entrypoint.js'
13 changes: 13 additions & 0 deletions bin/create-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -eu

yarn clean
yarn
yarn build
cp .gitignore .gitignore.bak
cat .gitignore | grep --line-buffered -v node_modules > .gitignore.new # redirect the grep command output to same file is not possible
mv .gitignore.new .gitignore
rm -rf node_modules
yarn install --production
git add .gitignore
git add node_modules
git ci -m 'Add prod dependencies'
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "auto-label",
"private": true,
"scripts": {
"clean": "rm -rf dist",
"typecheck": "tsc --noEmit",
"build": "node fuse",
"build:watch": "node fuse --variant watch",
Expand All @@ -14,7 +15,8 @@
"@actions/github": "^2.1.0",
"@octokit/graphql": "^4.3.1",
"ignore": "^5.0.5",
"lodash.pick": "^4.4.0"
"lodash.pick": "^4.4.0",
"tslib": "^1.10.0"
},
"devDependencies": {
"@octokit/webhooks": "^7.0.0",
Expand All @@ -27,7 +29,6 @@
"eslint-plugin-prettier": "^3.1.2",
"fuse-box": "^3.7.1",
"prettier": "^1.19.1",
"tslib": "^1.10.0",
"typescript": "^3.7.5",
"yargs": "^15.1.0"
}
Expand Down

0 comments on commit 3f82b43

Please sign in to comment.