From f14b45a42de0ca94b379b8c2e17c51864a47ca45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ran=20Sander?= Date: Sat, 2 Sep 2023 22:13:26 +0200 Subject: [PATCH] build: Fix CI Tweaks... --- .github/workflows/ci.yaml | 53 +++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7d3e108..5080637 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -57,29 +57,6 @@ jobs: echo "patch : ${{ steps.release.outputs['patch'] }}" echo "sha : ${{ steps.release.outputs['sha'] }}" - # - name: Checkout repository - # uses: actions/checkout@v3 - - # - name: Install dependencies - # run: | - # node -v - # npm install - - release-linux: - needs: release-please - runs-on: ubuntu-latest - # timeout-minutes: 15 - - if: ${{ needs.release-please.outputs.releases_created }} - env: - DIST_FILE_NAME: ctrl-q-nr - GITHUB_TOKEN: ${{ secrets.PAT }} - steps: - - name: Release tag and upload url from previous job - run: | - echo "tag_name : ${{ needs.release-please.outputs.release_tag_name }}" - echo "upload_url : ${{ needs.release-please.outputs.release_upload_url }}" - - name: Checkout repository uses: actions/checkout@v3 @@ -92,7 +69,6 @@ jobs: run: | pwd npm ci - npm run pc - name: Run Snyk to check for vulnerabilities if: | @@ -112,6 +88,35 @@ jobs: with: sarif_file: snyk.sarif + + release-linux: + needs: release-please + runs-on: ubuntu-latest + # timeout-minutes: 15 + + if: ${{ needs.release-please.outputs.releases_created }} + env: + DIST_FILE_NAME: ctrl-q-nr + GITHUB_TOKEN: ${{ secrets.PAT }} + steps: + - name: Release tag and upload url from previous job + run: | + echo "tag_name : ${{ needs.release-please.outputs.release_tag_name }}" + echo "upload_url : ${{ needs.release-please.outputs.release_upload_url }}" + + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: lts/* + + - name: Install dependencies + run: | + pwd + npm ci + - name: Publish to npm uses: JS-DevTools/npm-publish@v2 with: