Skip to content

Commit

Permalink
fix(CI): reorder demo build and release to prevent npm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zak-cloudnc committed Oct 24, 2020
1 parent e9f1034 commit 469c0bc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
- name: Test
run: yarn lib:test:ci
- name: Coverage
run: yarn codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true # optional (default = false)
- name: Build
run: yarn lib:build:prod
- name: Incremental code quality checking
Expand All @@ -39,15 +41,15 @@ jobs:
run: rm dist/observable-webworker/README.md && cp README.md dist/observable-webworker
- name: Copy LICENSE into dist
run: cp LICENSE dist/observable-webworker
- name: Build Demo
if: contains('refs/heads/master', github.ref)
run: yarn run demo:build:prod --progress=false --base-href "https://cloudnc.github.io/observable-webworker/"
- name: Release
if: contains('refs/heads/master refs/heads/next', github.ref)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: Build Demo
if: contains('refs/heads/master', github.ref)
run: yarn run demo:build:prod --progress=false --base-href "https://cloudnc.github.io/observable-webworker/"
- name: Deploy
if: contains('refs/heads/master', github.ref)
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit 469c0bc

Please sign in to comment.