Skip to content

release

release #141

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
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
- name: Checkout source
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
token: ${{ steps.token.outputs.token }}
- 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 \
@semantic-release/exec
- name: Run releaser
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
run: semantic-release
- 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
...