Skip to content

Update workflows

Update workflows #63

Workflow file for this run

name: Build
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup πŸ”Œ
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: https://registry.npmjs.org/
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: npm ci
- name: Run tests πŸ§ͺ
run: npm test
- name: Publish πŸš€
if: startsWith(github.ref, 'refs/tags/')
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}