Skip to content

Merge pull request #29 from Diaszano/fix/WorkflowDeploy #14

Merge pull request #29 from Diaszano/fix/WorkflowDeploy

Merge pull request #29 from Diaszano/fix/WorkflowDeploy #14

Workflow file for this run

name: NPM Deployment
on:
push:
branches:
- main
jobs:
npm_deploy:
name: Execute NPM Deployment
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout Source Code
uses: actions/checkout@v2
- name: Set Up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: package-lock.json
registry-url: https://registry.npmjs.org/
- name: Install Project Dependencies
run: npm ci
- name: Build Project
run: npm run build
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}