Skip to content

Release

Release #24

Workflow file for this run

name: Release
on: workflow_dispatch
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # 2.7.0
with:
disable-sudo: true
egress-policy: audit
allowed-endpoints: >
api.github.com:443
github.com:443
registry.npmjs.org:443
registry.yarnpkg.com:443
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # 4.1.1
with:
persist-credentials: false
token: ${{ secrets.SEMANTIC_RELEASE_PAT }}
- name: Install Node
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # 4.0.1
with:
node-version: 18
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build package
run: yarn build
- name: Semantic Release
uses: cycjimmy/semantic-release-action@61680d0e9b02ff86f5648ade99e01be17f0260a4 # 4.0.0
id: semantic
with:
semantic_version: 22
branch: main
extends: |
@rweich/semantic-release-config@3
extra_plugins: |
@semantic-release/changelog@6
@semantic-release/git@10
conventional-changelog-conventionalcommits@7
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_PAT }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Outputs
run: |
cat <<EOO >> $GITHUB_STEP_SUMMARY
---
### Semantic release output
<table>
<tr><th>published</th><td>${{ steps.semantic.outputs.new_release_published }}</td></tr>
<tr><th>last release</th><td>${{ steps.semantic.outputs.last_release_version }}</td></tr>
<tr><th>next release</th><td>${{ steps.semantic.outputs.new_release_version }}</td></tr>
</table>
---
#### Release-Notes
${{ steps.semantic.outputs.new_release_notes }}
---
EOO