ci: Install dependencies before semantic-release run (#1529)
This commit is contained in:
@@ -46,9 +46,6 @@ jobs:
|
|||||||
# build).
|
# build).
|
||||||
ignore: 'hacs'
|
ignore: 'hacs'
|
||||||
|
|
||||||
- name: Verify docs links
|
|
||||||
run: yarn run docs-check-links
|
|
||||||
|
|
||||||
- name: Upload javascript
|
- name: Upload javascript
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ permissions:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
# TODO: Remove once semantic-release is working and before the dry-run flag is
|
||||||
|
# removed.
|
||||||
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
@@ -16,6 +19,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: volta-cli/action@v4
|
- uses: volta-cli/action@v4
|
||||||
|
- run: yarn install --immutable
|
||||||
- run: npx semantic-release --dry-run
|
- run: npx semantic-release --dry-run
|
||||||
id: get-next-version
|
id: get-next-version
|
||||||
env:
|
env:
|
||||||
@@ -30,11 +34,8 @@ jobs:
|
|||||||
needs: get-next-version
|
needs: get-next-version
|
||||||
if: needs.get-next-version.outputs.new-release-published == 'true'
|
if: needs.get-next-version.outputs.new-release-published == 'true'
|
||||||
steps:
|
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 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: echo "The new release git tag is ${{ needs.get-next-version.outputs.new-release-git-tag }}"
|
||||||
- run: yarn install --immutable
|
|
||||||
- run: yarn run build
|
- run: yarn run build
|
||||||
env:
|
env:
|
||||||
RELEASE_VERSION: ${{ needs.get-next-version.outputs.new-release-version }}
|
RELEASE_VERSION: ${{ needs.get-next-version.outputs.new-release-version }}
|
||||||
|
|||||||
Reference in New Issue
Block a user