Skip to content

Commit

Permalink
chore: update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
slipx06 committed Oct 27, 2024
1 parent 04f5632 commit 5c512c0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20' # Specify node version to match project requirements

- name: Get latest tag or fail
id: get-latest-tag
Expand Down Expand Up @@ -45,10 +47,17 @@ jobs:
fi
echo "is_higher=$is_higher" >> $GITHUB_OUTPUT
- name: Remove package-lock.json to prevent conflicts
if: steps.check-version.outputs.is_higher == 'true'
run: |
if [ -f package-lock.json ]; then
rm package-lock.json
fi
- name: Build project
if: steps.check-version.outputs.is_higher == 'true'
run: |
yarn install
yarn install --ignore-optional --verbose
yarn run build
- name: 🛎️ Create release
Expand Down
8 changes: 4 additions & 4 deletions dist/sunsynk-power-flow-card.js

Large diffs are not rendered by default.

0 comments on commit 5c512c0

Please sign in to comment.