From 91884efb56daf0a17cd7703cb148d314e86b5285 Mon Sep 17 00:00:00 2001 From: iiojib Date: Mon, 4 Sep 2023 16:32:39 +0300 Subject: [PATCH] Update workflow --- .github/workflows/npm.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 033f5d90..b55240c7 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -8,7 +8,7 @@ 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: @@ -16,12 +16,10 @@ jobs: - 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 @@ -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 }}