Skip to content

Release Prerelease

Release Prerelease #1

name: Release Prerelease
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# Fetch the whole history with all tags
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
cache-dependency-path: package-lock.json
cache: 'npm'
- env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git config --global user.name "Releaser"
git config --global user.email "donato@wolfisberg.dev"
npm ci
npm run build
npm version prerelease -m "Bump version to %s"
git push && git push --tags
npm publish
npm version prerelease -m "Create prerelease version %s"
git push && git push --tags