Skip to content

NPM_PUBLISH

NPM_PUBLISH #193

Workflow file for this run

name: NPM_PUBLISH
on:
push:
branches: master
paths:
- '**package.json'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.5.1]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: npm publisher script
working-directory: ./vue/sbc-common-components/
run: |
npm install
npm run build
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}