From debaeb598504f1d1372265f05c0df983d1bf6b39 Mon Sep 17 00:00:00 2001 From: "Deavon M. McCaffery" Date: Tue, 15 Dec 2020 23:47:35 +0000 Subject: [PATCH] fix(build): use semantic-release token for release --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2004d32..0982b81 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,8 @@ jobs: steps: - name: checkout uses: actions/checkout@master + with: + persist-credentials: false - name: install-node uses: actions/setup-node@master @@ -32,11 +34,9 @@ jobs: - name: semantic-release-dry-run run: npx semantic-release --ci --dry-run if: ${{ github.event.repository.fork }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: semantic-release run: npx semantic-release --ci if: ${{ !github.event.repository.fork }} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}