Skip to content

Commit

Permalink
Merge pull request nutgaard#14 from nutgaard/fix/workflows
Browse files Browse the repository at this point in the history
ci: update workflows to use latest version of action
  • Loading branch information
nutgaard authored Nov 14, 2024
2 parents 5a23e61 + 09eeaff commit 4d51a71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 16, 18, 20 ]
node: [ 18, 20, 22 ]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
name: Setup node ${{ matrix.node }}
with:
node-version: ${{ matrix.node }}
Expand All @@ -31,18 +31,8 @@ jobs:
run: npm run test
- name: Build
run: npm run build
# - name: Report coverage
# if: ${{ matrix.node == '18' }}
# uses: codecov/codecov-action@v3
# - name: Publish docs
# if: ${{ matrix.node == '18' }}
# uses: crazy-max/ghaction-github-pages@v2
# with:
# build_dir: docs
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package
if: ${{ matrix.node == '20' }}
if: ${{ matrix.node == '22' }}
run: npx semantic-release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18, 19]
node: [18, 20, 22]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
name: Setup node ${{ matrix.node }}
with:
node-version: ${{ matrix.node }}
Expand All @@ -27,7 +27,3 @@ jobs:
run: npm run test
- name: Build
run: npm run build
# TODO setup tests
# - name: Report coverage
# if: ${{ matrix.node == '18' }}
# uses: codecov/codecov-action@v3

0 comments on commit 4d51a71

Please sign in to comment.