Skip to content

Workflow file for this run

name: Publish Node.js package
on:
release:
types: [created]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Lint
run: |
npm run lint
npm run type-check
- name: Build package
run: |
npm --no-git-tag-version version ${GITHUB_REF#refs/*/}
npm run build
- name: Publish build
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}