Skip to content

Commit

Permalink
fix(cicd): improved dependency of jobs for publish and release
Browse files Browse the repository at this point in the history
  • Loading branch information
alvyn279 committed May 9, 2021
1 parent 2bdae2f commit b52fe0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ main ]

jobs:
build_lint_test:
lint_build_test:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -25,11 +25,11 @@ jobs:
- name: Install dependencies
run: npm i

- name: Build lib
run: npm run build

- name: Run linter
run: npm run lint

- name: Build lib
run: npm run build

- name: Run unit tests
run: npm test
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- "v*"

jobs:
build_and_publish: # publish to package managers
# publish to package managers
build_and_publish:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -40,7 +41,9 @@ jobs:
with:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

release: # release versioned source code to GitHub
# release versioned source code to GitHub
release:
needs: build_and_publish
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit b52fe0e

Please sign in to comment.