feat: Add TypeScript Action (#83)

cf. https://github.com/peaceiris/actions-github-pages
Close #54
This commit is contained in:
Shohei Ueda authored and GitHub committed 2020-02-05 14:34:19 +09:00
1 parent 28b05fd3fa
commit 68b21c12af
39 files changed
+9269 -241

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
cmd := "bash"
msg := ""
IMAGE_NAME := actions_github_pages_dev:latest
NODE_VERSION := $(shell cat ./.nvmrc)
DOCKER_BUILD := docker build . -t $(IMAGE_NAME) --build-arg NODE_VERSION=$(NODE_VERSION)
DOCKER_RUN := docker run --rm -i -t -v ${PWD}:/repo -v ~/.gitconfig:/root/.gitconfig $(IMAGE_NAME)
.PHONY: build
build:
$(DOCKER_BUILD)
.PHONY: run
run:
$(DOCKER_RUN) $(cmd)
.PHONY: test
test:
$(DOCKER_RUN) npm test
.PHONY: commit
commit:
$(DOCKER_RUN) git commit -m "$(msg)"