From b864adb11545dc7fabfba09c2bdeab1ba377d546 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Thu, 24 Feb 2022 17:51:47 +0900 Subject: [PATCH] run on test pass --- .github/workflows/github-pages.yml | 1 + templates/basic/package.json | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) mode change 120000 => 100644 templates/basic/package.json diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index ae6d144..a89606b 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -6,6 +6,7 @@ on: types: [completed] jobs: main: + if: github.event.workflow_run.conclusion == 'success' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/templates/basic/package.json b/templates/basic/package.json deleted file mode 120000 index 45b8b98..0000000 --- a/templates/basic/package.json +++ /dev/null @@ -1 +0,0 @@ -../template/package.json \ No newline at end of file diff --git a/templates/basic/package.json b/templates/basic/package.json new file mode 100644 index 0000000..fa3f693 --- /dev/null +++ b/templates/basic/package.json @@ -0,0 +1,14 @@ +{ + "name": "basic", + "version": "1.0.0", + "private": true, + "main": "main.js", + "type": "module", + "scripts": { + "test": "jest" + }, + "devDependencies": { + "@babel/preset-env": "^7.16.11", + "jest": "^27.5.1" + } +}