Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
ci: configure git user and add environment variables for release
- add step to initialize git user with name and email - include NPM_TOKEN and GH_TOKEN as environment variables for release step
  • Loading branch information
johelder committed Jun 15, 2025
commit ccee4f36c26055f3f3b2de57a98d7659d0254ef4
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,18 @@ jobs:
- name: Setup
uses: ./.github/actions/setup

- name: Initialize Git user
run: |
git config --global user.name "Release Workflow"
git config --global user.email "${{ secrets.GIT_EMAIL }}"

- name: Initialize the NPM config
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Deploy package to NPM
run: yarn release --ci
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}