Skip to content

Manually Release NPM Version #2

Manually Release NPM Version

Manually Release NPM Version #2

Workflow file for this run

name: Republish NPM package
on:
workflow_dispatch:
inputs:
version:
description: 'Version to republish'
required: true
jobs:
republish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.version }}
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}