diff --git a/.github/workflows/weekly-release.yml b/.github/workflows/weekly-release.yml index 932dac4..3eb6047 100644 --- a/.github/workflows/weekly-release.yml +++ b/.github/workflows/weekly-release.yml @@ -1,33 +1,34 @@ name: Weekly Release on: + workflow_dispatch: schedule: - - cron: "0 16 * * 6" + - cron: '0 16 * * 6' jobs: - release: - runs-on: ubuntu-latest + release: + runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 + steps: + - name: Checkout code + uses: actions/checkout@v4 - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: latest + - 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: 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: 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 "actions@github.com" - git add . - git commit -am "release: $(jq -r '.version' package.json)" \ No newline at end of file + - name: Commit changes + run: | + git config --global user.name "GitHub Actions" + git config --global user.email "actions@github.com" + git add . + git commit -am "release: $(jq -r '.version' package.json)"