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 d5a1e87
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 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 [email protected]
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 }}
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: |
pnpm nx release --yes

0 comments on commit d5a1e87

Please sign in to comment.