Skip to content

v0.3.4

v0.3.4 #13

name: Node.js Package
on:
push:
branches: [main]
paths: ['package.json']
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Build
run: |
npm install
npm run build
- name: Publish to GitHub Packages
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://npm.pkg.github.com/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}