Skip to content

Commit

Permalink
fix: job handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricerenck committed Mar 30, 2024
1 parent 9c87751 commit 9f6e614
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
release:
name: Release
needs: build
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
Expand All @@ -59,13 +60,17 @@ jobs:
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
- name: Read .nvmrc
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: nvm

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
node-version: ${{ steps.nvm.outputs.NODE_VERSION }}

- name: Install
run: npm install
run: npm ci --ignore-scripts

- name: Release
env:
Expand Down

0 comments on commit 9f6e614

Please sign in to comment.