From 261d0c8f1bdc41e35e516c5066b69320d1e6ce59 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Fri, 6 Mar 2020 14:50:26 +0100 Subject: [PATCH] Optimized GitHub workflow --- .github/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8909d5cc5..1ddff68e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-latest steps: - # Limit clone depth to speed up build + # Checkout source form GitHub - uses: actions/checkout@v2 # Install Node runtime and dependencies @@ -48,8 +48,10 @@ jobs: - if: steps.cache-node.outputs.cache-hit != 'true' run: npm install - # Run linter and build distribution files + # Run linter - run: npm run lint + + # Build distribution files - run: npm run build # Check diff after build @@ -61,7 +63,7 @@ jobs: runs-on: ubuntu-latest steps: - # Limit clone depth to speed up build + # Checkout source form GitHub - uses: actions/checkout@v2 # Install Python runtime and dependencies @@ -110,7 +112,7 @@ jobs: runs-on: ubuntu-latest steps: - # Limit clone depth to speed up build + # Checkout source form GitHub - uses: actions/checkout@v2 # Install Node runtime and dependencies @@ -146,7 +148,7 @@ jobs: # Build Python package - run: python setup.py build sdist bdist_wheel --universal - # Push release to PyPI + # Push package to PyPI - env: PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}