Skip to content

Commit

Permalink
Add NPM token to semantic build step. Push build to earlier in the ac…
Browse files Browse the repository at this point in the history
…tion.
  • Loading branch information
lewisdonovan committed Oct 27, 2024
1 parent c5d8366 commit 7c31b9b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ jobs:
node-version: 20
- name: Install Dependencies
run: npm ci --legacy-peer-deps
- name: Build
run: npm run build
- name: Semantic release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: Build
run: npm run build
- name: Publish to NPM
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish
# - name: Publish to NPM
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: npm publish

0 comments on commit 7c31b9b

Please sign in to comment.