Skip to content

Update pipeline to be able to trigger manually or when a commit start… #2

Update pipeline to be able to trigger manually or when a commit start…

Update pipeline to be able to trigger manually or when a commit start… #2

Workflow file for this run

name: Publish to npm
on:
workflow_dispatch:
push:
tags:
- v*
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: npm ci
- name: Build Library
run: npm run build-lib
- name: Publish
run: |
cd dist/ngx-view-state
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}