Skip to content

Commit

Permalink
Merge pull request #11 from mountaindude/main
Browse files Browse the repository at this point in the history
build: Fix CI
  • Loading branch information
mountaindude authored Sep 2, 2023
2 parents 56aa9c4 + f14b45a commit 7fa93d7
Showing 1 changed file with 29 additions and 24 deletions.
53 changes: 29 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -92,7 +69,6 @@ jobs:
run: |
pwd
npm ci
npm run pc
- name: Run Snyk to check for vulnerabilities
if: |
Expand All @@ -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:
Expand Down

0 comments on commit 7fa93d7

Please sign in to comment.