Skip to content

v3.5.4

v3.5.4 #101

Workflow file for this run

name: 'Build and Publish to NPM'
on:
release:
types: [created]
workflow_dispatch:
inputs:
branch:
description: 'The branch to checkout'
required: false
default: 'mv2app'
jobs:
build-publish:
environment: NPM_TOKEN_NIK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branch || 'mv2app' }}
path: .
- name: Use Node.js '16.x'
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run build-prod:copy
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_NIK }}