Skip to content

Merge pull request #2 from jamesbuch/development #22

Merge pull request #2 from jamesbuch/development

Merge pull request #2 from jamesbuch/development #22

Workflow file for this run

name: CD
on:
push:
branches:
- main
jobs:
build-and-publish:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}