-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): setup git config user and permission to push
- Loading branch information
Showing
1 changed file
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NPM_CONFIG_PROVENANCE: true | ||
run: | | ||
pnpm nx release --yes | ||
pnpm nx release --dry-run |