Skip to content

Release to npm

Release to npm #3

Workflow file for this run

name: Release
on:
# 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: "@digitalservice4germany"
- run: npm ci
- run: npm run build
- run: cp package.json LICENSE README.md ./dist/
- run: cd dist && npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}