diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/cd.yml | 27 | ||||
-rw-r--r-- | .github/workflows/ci.yml | 11 |
2 files changed, 20 insertions, 18 deletions
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 21aafd9..2691d91 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -4,7 +4,7 @@ name: 'cd' on: push: - branches: [main] + branches: [main] defaults: run: shell: 'bash' @@ -14,16 +14,16 @@ jobs: outputs: ts: ${{ steps.filter.outputs.ts }} steps: - - uses: actions/checkout@v2 - - name: '[check if build necessary]' - uses: dorny/paths-filter@v2 - id: filter - with: - filters: | - ts: - - '**.ts' - - '**.tsx' - - '**.json' + - uses: actions/checkout@v2 + - name: '[check if build necessary]' + uses: dorny/paths-filter@v2 + id: filter + with: + filters: | + ts: + - '**.ts' + - '**.tsx' + - '**.json' build-deploy: name: '[cd|build-deploy]' runs-on: 'ubuntu-latest' @@ -45,8 +45,9 @@ jobs: git config --global url."https://github.com/".insteadOf ssh://[email protected]/ git config --global url."https://".insteadOf git:// git config --global url."https://".insteadOf ssh:// - yarn - yarn build + npm install + npm run build + npm run export - name: '[commit changes]' run: | git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8dbc534..408ccf7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,9 +23,9 @@ jobs: with: filters: | ts: - - '*.ts' - - '*.tsx' - - '*.json' + - '**.ts' + - '**.tsx' + - '**.json' lint-test-build: name: '[ci|lint-test-build]' runs-on: 'ubuntu-latest' @@ -47,7 +47,8 @@ jobs: git config --global url."https://github.com/".insteadOf ssh://[email protected]/ git config --global url."https://".insteadOf git:// git config --global url."https://".insteadOf ssh:// - yarn - yarn build + npm install + npm run build + npm run export ... # End of ci.yml |