Skip to content

Weekly Release

Weekly Release #1

name: Weekly Release
on:
workflow_dispatch:
schedule:
- cron: '0 16 * * 6'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- name: Remove version suffix
run: sed -i 's/-[0-9]*$//' package.json
- name: Update CHANGELOG.md
run: |
today=$(date +'%Y-%m-%d')
sed -i "s/unreleased/$today/" CHANGELOG.md
- name: Commit changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add .
git commit -am "release: $(jq -r '.version' package.json)"