name: Build and Deploy to NPM.js
description: Build TS and deploy package to NPM.js

inputs:
  NPM_TOKEN:
    description: NPM.js Token
    required: true

runs:
  using: "composite"
  steps:
    - name: Create JS from TS files
      run: |
        npm ci --silent
        npm run build
      shell: bash
    - name: Deploy NPM package
      run: |
        npm login
        npm publish
      env:
        NODE_AUTH_TOKEN: ${{ inputs.NPM_TOKEN }}
      shell: bash

name: Build and Deploy to NPM.js
description: Build TS and deploy package to NPM.js

inputs:
  NPM_TOKEN:
    description: NPM.js Token
    required: true

runs:
  using: "composite"
  steps:
    - name: Create JS from TS files
      run: |
        npm install --silent
        npm run build
      shell: bash
    - name: Deploy NPM package
      run: |
        npm login
        npm publish
      env:
        NODE_AUTH_TOKEN: ${{ inputs.NPM_TOKEN }}
      shell: bash

Use Npm install instead of CI
Use Npm install instead of CI
