Skip to content

update: Publish NPM Package #21

update: Publish NPM Package

update: Publish NPM Package #21

Workflow file for this run

name: Publish NPM Package
on:
push:
tags:
- ng-*
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: https://registry.npmjs.org
cache: 'npm'
- name: NPM CI
run: npm ci
- name: Build Angular Library
run: |
npm run build:ng
- name: Publish NPM
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
VERSION=${GITHUB_REF_NAME#ng-}
cd ./dist/library
npm version ${VERSION}
npm publish --access=public