Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iiojib committed Sep 4, 2023
1 parent 91eec46 commit 91884ef
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,18 @@ jobs:
strategy:
max-parallel: 5
matrix:
node-version: [ '14', '15', '16' ]
node-version: [ '14', '15', '16', '18' ]
prefix: [ "qaseio", "qase-cypress", "qase-cucumberjs", "qase-newman", "qase-testcafe", "qase-jest", "qase-playwright" ]
name: Project ${{ matrix.prefix }} - Node ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- working-directory: ./${{ matrix.prefix }}
run: npm install
- working-directory: ./${{ matrix.prefix }}
run: npm run lint
- working-directory: ./${{ matrix.prefix }}
run: npm run test
run: npm run build -ws --if-present
run: npm run lint -w ${{ matrix.prefix }}
run: npm run test -w ${{ matrix.prefix }}
build-n-publish:
runs-on: ubuntu-latest
needs: test
Expand All @@ -39,13 +37,10 @@ jobs:
node-version: '14'
registry-url: 'https://registry.npmjs.org'
- if: contains(github.event.ref, matrix.prefix)
working-directory: ./${{ matrix.prefix }}
run: npm install
- if: contains(github.event.ref, matrix.prefix)
working-directory: ./${{ matrix.prefix }}
run: npm run build
run: npm run build -ws --if-present
- if: contains(github.event.ref, matrix.prefix)
working-directory: ./${{ matrix.prefix }}
run: npm publish --tag beta
run: npm publish -w ${{ matrix.prefix }} --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 91884ef

Please sign in to comment.