ci: Fix semantic release credentials (#1530)

This commit is contained in:
Dermot Duffy
2024-09-14 16:18:39 -07:00
committed by GitHub
parent 2e809ca8b7
commit 9a7c16ac4e
+6 -3
View File
@@ -5,9 +5,6 @@ permissions:
contents: read
on:
# TODO: Remove once semantic-release is working and before the dry-run flag is
# removed.
pull_request:
push:
branches:
- main
@@ -18,6 +15,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- 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
- run: yarn install --immutable
- run: npx semantic-release --dry-run