Skip to content

Commit

Permalink
CI: Configure machine user for releases.
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphsps committed Nov 1, 2023
1 parent ec65cff commit fb9b805
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 @@ -17,11 +17,13 @@ env:

jobs:
release:
name: Release
name: 🚚 Release
runs-on: ubuntu-latest
steps:
- name: 🕶️ Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 📦 Install
uses: ./.github/common/install
Expand All @@ -32,15 +34,18 @@ jobs:
- name: 🧪 Tests
run: npm run test:packages

- name: 🥸 Configure Identity
run: |
git config --global user.email "[email protected]"
git config --global user.name "nordcombot"
- name: 🤝 Create Release Pull Request or Publish to NPM
id: changesets
uses: changesets/action@v1
with:
publish: npm release
title: 'Meta: Bump version.'
commit: ''
setupGitUser: false
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.MACHINE_USER }}

0 comments on commit fb9b805

Please sign in to comment.