Skip to content

Commit

Permalink
chore: added job to test latest major version on npm
Browse files Browse the repository at this point in the history
  • Loading branch information
lquixada committed Jul 2, 2023
1 parent e597639 commit c86607f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,22 @@ jobs:
- run: npm install --prefer-offline
- run: make lint

major:
runs-on: ubuntu-latest
outputs:
latest: ${{ steps.npm-major.outputs.version }}
steps:
- id: npm-major
run: echo version=$(npm view cross-fetch@latest version | cut -d. -f1) >> "$GITHUB_OUTPUT"

typecheck:
name: Types
runs-on: ubuntu-latest
needs: [major]
steps:
- run: echo "$LATEST"
env:
LATEST: ${{needs.major.outputs.latest}}
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
Expand Down

0 comments on commit c86607f

Please sign in to comment.