Skip to content

Commit

Permalink
👷 Initialize NPM config before creating release
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanprince committed Sep 25, 2024
1 parent ff65db0 commit 9186af2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,17 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Git config
- name: Initialize the Git user
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Create Release
- name: Initialise the NPM config
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: $(€ secrets.NPM_TOKEN 3)

- name: Create Release and Publish to NPM
run: pnpm run release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit 9186af2

Please sign in to comment.