Skip to content

release

release #14

Workflow file for this run

name: release
on: workflow_dispatch
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Verify branch name
if: github.ref != 'refs/heads/master'
run: |
echo "🚨 The release must start from the master branch!"
exit 1
- name: Configure releaser details
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Install pnpm
uses: wyvox/action-setup-pnpm@v3
with:
node-version: 18.x
node-registry-url: "https://registry.npmjs.org"
- name: Trigger release script
run: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}