Skip to content

v1.1.0

v1.1.0 #2

Workflow file for this run

name: Update Changelog
on:
pull_request:
types:
- opened
- synchronize
jobs:
updateChangelog:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/20' # Ensure this version matches your project's requirements
- name: Install dependencies
run: npm ci # 'npm ci' is more efficient and reliable for CI/CD environments
- name: Configure Git identity
run: |
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "${GITHUB_ACTOR}"
env:
GITHUB_ACTOR: ${{ github.actor }}
- name: Update Changelog
run: npx standard-version --release-as "${{ github.event.pull_request.title }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Include this if your script interacts with GitHub API
- name: Commit and Push Changes
run: |
git add CHANGELOG.md package.json package-lock.json
git commit -m "chore(release): Update Changelog for PR ${{ github.event.pull_request.number }}"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Required for pushing changes