Skip to content

Commit

Permalink
build: Update release workflow with fetch-depth and GH_PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
killerapp committed Sep 1, 2024
1 parent 2e0a4bf commit 0b4ae8d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -27,12 +30,8 @@ jobs:
run: npm test
- name: Build
run: npm run build
- name: Configure npm
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
npm config set access public
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release

0 comments on commit 0b4ae8d

Please sign in to comment.