Skip to content

Publish Version

Publish Version #31

Workflow file for this run

name: Publish Version
on:
workflow_dispatch:
inputs:
version:
description: Version
default: 0.6.0
required: true
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
- name: Config git user
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- run: npm ci
- run: npm run publish:version ${{ github.event.inputs.version }}
- run: npm run publish:ci
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}