Skip to content

latest

latest #34

Workflow file for this run

name: Deploy package to NPM
on:
push:
branches:
- "main"
workflow_dispatch:
concurrency:
group: "npm"
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install NPM dependencies
run: npm ci
- name: Build TypeScript
run: tsc
- name: Test code
run: npm test
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}