Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Build & Publish

Build & Publish #8

name: Build & Publish
on:
release:
types: [published]
jobs:
publish:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- run: yarn
- run: yarn run test
- run: yarn run build
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
registry: 'https://npm.pkg.github.com'