ci(publish-stable): add missing git configs #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Stable | |
on: | |
push: | |
branches: | |
- stable | |
jobs: | |
publish: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- package: 'lasfoiawbp' | |
folder: '.' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
registry-url: 'https://registry.npmjs.org/' | |
always-auth: true | |
cache: pnpm | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
- name: Install dependencies | |
run: pnpm install | |
- name: Configure Git | |
run: | | |
git remote set-url origin "https://${{ secrets.GITHUB_TOKEN }}:[email protected]/${{ github.repository }}.git" | |
git config user.name "github-actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Publish package | |
run: | | |
pnpm --filter ${{ matrix.package }} run release \ | |
--name "${{ matrix.package }}" \ | |
--package-path "${{ matrix.folder }}" \ | |
--commit-message-template "chore({{name}}): release {{full-name}}@{{new-version}} [skip ci]" | |
pnpm --filter ${{ matrix.package }} publish --provenance --no-git-checks | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} |