Skip to content

release

release #17

Workflow file for this run

---
# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
name: release
"on":
workflow_dispatch:
schedule:
- cron: "0 8 * * 1"
permissions:
contents: read
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: token
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2
with:
app-id: ${{ secrets.TOKEN_EXCHANGE_APP }}
private-key: ${{ secrets.TOKEN_EXCHANGE_KEY }}
permission-contents: write
permission-pull-requests: write
permission-issues: write
- name: Checkout source
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
token: ${{ steps.token.outputs.token }}
- name: Setup nodejs
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
with:
node-version: 24.x
- name: Write buildtime
run: date >| .github/RELEASE
- name: Install releaser
run: |
npm install -g \
conventional-changelog-conventionalcommits@6.1.0 \
semantic-release@23.1.1 \
@semantic-release/changelog \
@semantic-release/git
- name: Run releaser
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
run: semantic-release
- name: Update repo
run: git pull --rebase --autostash
- name: Commit changes
uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9
with:
author_name: GitHub Actions
author_email: github@webhippie.de
add: .github/RELEASE
message: "docs: automated release update [skip ci]"
push: true
commit: --signoff
...