Skip to content

Merge pull request #207 from Schascha/dependabot/npm_and_yarn/depende… #358

Merge pull request #207 from Schascha/dependabot/npm_and_yarn/depende…

Merge pull request #207 from Schascha/dependabot/npm_and_yarn/depende… #358

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@v4
with:
node-version-file: '.nvmrc'
registry-url: https://registry.npmjs.org/
- name: Install dependencies 👨🏻‍💻
run: npm ci
- name: Run linter 👀
run: npm run lint
- name: Run tests 🧪
run: npm t
- name: Publish 🚀
if: startsWith(github.ref, 'refs/tags/')
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}