ci: Fix semantic release credentials (#1530)
This commit is contained in:
@@ -5,9 +5,6 @@ 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
|
||||||
@@ -18,6 +15,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
# Fetch all tags, so semantic-release can calculate the correct next release.
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
# Do not remove credentials after checkout.
|
||||||
|
persist-credentials: false
|
||||||
- uses: volta-cli/action@v4
|
- uses: volta-cli/action@v4
|
||||||
- run: yarn install --immutable
|
- run: yarn install --immutable
|
||||||
- run: npx semantic-release --dry-run
|
- run: npx semantic-release --dry-run
|
||||||
|
|||||||
Reference in New Issue
Block a user