Skip to content

Commit

Permalink
chore(release): setup git config user and permission to push
Browse files Browse the repository at this point in the history
  • Loading branch information
tinesoft committed Mar 24, 2024
1 parent f6345c0 commit 4aa82a2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
release:
name: Build, Release & Publish
permissions:
contents: read
contents: write
id-token: write # needed for provenance data generation
runs-on: ubuntu-latest
steps:
Expand All @@ -25,14 +25,19 @@ jobs:
fetch-depth: 0
fetch-tags: true

- name: Setup Git
run: |
git config --global user.email semantic-release@github.com
git config --global user.name "Semantic Release CI"
- name: Install node, pnpm, and dependencies
uses: ./.github/actions/install-dependencies

- name: Build, Release on GitHub & Publish to NPM
env:
HUSKY: '0' # By default do not run HUSKY install
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: |
pnpm nx release --yes
pnpm nx release --dry-run

0 comments on commit 4aa82a2

Please sign in to comment.