Skip to content

chore: release 5.0.1 (#281) #14

chore: release 5.0.1 (#281)

chore: release 5.0.1 (#281) #14

Workflow file for this run

name: Publish Package to npmjs
on:
push:
tags: '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run tests
run: |
npm run lint
npm run build
npm run docs
npm run test
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Build application
run: npm run build
- name: Publish to npm
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_AUTHTOKEN}}