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 }}