Skip to content

Node.js Package

Node.js Package #14

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Node.js Package
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: NPM Login
# You may pin to the exact commit or the version.
# uses: Smaiil/npm-login@9979adf64b541478ac09a799e6f53d6c592c6f77
uses: Smaiil/npm-login@v1.0.2
with:
scope: "@jaysson1710-org"
registry: "https://npm.pkg.github.com"
token: ${{ secrets.GITHUB_TOKEN }}
- run: npm install
- run: npm ci