Skip to content

0.0.8

0.0.8 #8

Workflow file for this run

name: Publish to NPM
on:
push:
tags:
- "*.*.*"
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Build package
run: npm run build
- name: Run tests
run: npm test
- name: Publish to NPM
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
npm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
npm publish --access public --ignore-scripts