Build and publish updates

This commit is contained in:
NinjaPug
2025-05-01 19:18:08 -04:00
parent e88e767d75
commit 7f1bc5882e
3 changed files with 55 additions and 44 deletions

View File

@@ -1,20 +1,32 @@
name: Publish to NPM
name: Publish Package to NPM
on:
release:
types: [created]
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build:lib
- run: cd dist/ngx-pendo-lite && npm publish
- name: Install dependencies
run: npm ci
- name: Clean previous build
run: rm -rf dist
- name: Build library
run: npm run build:lib -- --configuration production
- name: Publish to NPM
run: cd dist/ngx-pendo-lite && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}