Merge pull request #137 from zenn-dev/canary #25
This file contains hidden or 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: ReleaseページのCHANGELOGを生成&更新する | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| update-changelog: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: バージョン番号を環境変数に設定 | |
| run: node -p -e '`RELEASED_PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV | |
| - name: CHANGELOGを生成&更新する | |
| uses: release-drafter/release-drafter@v5 | |
| with: | |
| version: ${{ env.RELEASED_PACKAGE_VERSION }} | |
| name: ${{ env.RELEASED_PACKAGE_VERSION }} | |
| tag: ${{ env.RELEASED_PACKAGE_VERSION }} | |
| publish: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |