Skip to content

Release

Release #3

Workflow file for this run

name: Release
# setup the workflow trigger(s) according to your needs
# see: https://docs.github.com/en/actions/using-workflows/triggering-a-workflow
on:
# push:
# branches: ["main", "alpha", "beta", "next", "next-major"]
# manual
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org
scope: "@digitalservicebund"
- run: npm ci
- run: npm run build
- run: npm test
- name: Release
run: cd dist && npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# create NPM_TOKEN repository secret (repo settings -> secrets and variables)
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}