Skip to content

Release packages [publish docs] #25

Release packages [publish docs]

Release packages [publish docs] #25

Workflow file for this run

name: Dependabot Changeset Automation
on:
pull_request:
types:
- opened
branches:
- master
jobs:
run-changeset:
if: startsWith(github.head_ref, 'dependabot')
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
# Install pnpm
- name: Install pnpm
run: npm install -g pnpm
# Install dependencies
- name: Install dependencies
run: pnpm install --frozen-lockfile
# Run pnpm changeset
- name: Run pnpm changeset
run: pnpm changeset --empty
# Commit and push changes
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "chore: add changeset for dependabot PR"
git push origin ${{ github.head_ref }}