Skip to content

Update build process to include type declarations (#66) #30

Update build process to include type declarations (#66)

Update build process to include type declarations (#66) #30

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Install Dependencies
run: npm ci --force
- name: Run Tests
run: npm test
publish-npm:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Install Dependencies
run: npm ci --force
- name: Build Project
run: npm run build
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}