Skip to content

Commit

Permalink
ci: Install dependencies before semantic-release run
Browse files Browse the repository at this point in the history
  • Loading branch information
dermotduffy committed Sep 14, 2024
1 parent 384fc1e commit 6b05704
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ jobs:
# build).
ignore: 'hacs'

- name: Verify docs links
run: yarn run docs-check-links

- name: Upload javascript
uses: actions/upload-artifact@v4
with:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ permissions:
contents: read

on:
# TODO: Remove once semantic-release is working and before the dry-run flag is
# removed.
pull_request:
push:
branches:
- main
Expand All @@ -16,6 +19,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
- run: yarn install --immutable
- run: npx semantic-release --dry-run
id: get-next-version
env:
Expand All @@ -30,11 +34,8 @@ jobs:
needs: get-next-version
if: needs.get-next-version.outputs.new-release-published == 'true'
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
- run: echo "The new release version is ${{ needs.get-next-version.outputs.new-release-version }}"
- run: echo "The new release git tag is ${{ needs.get-next-version.outputs.new-release-git-tag }}"
- run: yarn install --immutable
- run: yarn run build
env:
RELEASE_VERSION: ${{ needs.get-next-version.outputs.new-release-version }}
Expand Down

0 comments on commit 6b05704

Please sign in to comment.