Skip to content

Commit

Permalink
add secrets for git user name and email
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Dec 17, 2024
1 parent 477ccb4 commit 68853c7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,28 +128,31 @@ jobs:
with:
path: ./prebuilds
merge-multiple: true

- name: Install dependencies
run: npm ci

- name: List ./prebuilds/
run: ls -laR ./prebuilds

# https://github.com/actions/checkout?tab=readme-ov-file#push-a-commit-using-the-built-in-token
# https://chatgpt.com/share/6761e017-9950-800e-ba1e-94d575010f2d

- name: Set up GPG
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
fingerprint: ${{ secrets.GPG_FINGERPRINT }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true
git_tag_gpgsign: true
fingerprint: ${{ secrets.GPG_FINGERPRINT }}


- name: Configure git for publishing
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config user.name "${secrets.GIT_USER_NAME}"
git config user.email "${secrets.GIT_USER_EMAIL}"
- name: Configure npm for publishing
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
Expand Down

0 comments on commit 68853c7

Please sign in to comment.