Skip to content

fix: configure git user in release workflow (#37) #35

fix: configure git user in release workflow (#37)

fix: configure git user in release workflow (#37) #35

name: build-release
on:
push:
branches:
- main
jobs:
publish-npmjs:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Update NPM
run: npm install -g npm@latest
- name: Install dependencies
run: npm install
- name: Set git user
run: |
git config --global user.email "<$GITHUB_ACTOR@users.noreply.github.com>"
git config --global user.name "$GITHUB_ACTOR"
- name: Publish package
run: npm run release