Release #7
This file contains 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 | |
# 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 }} |