Skip to content

publish-npm-package

publish-npm-package #2

name: publish-package-npm
on:
release:
types:
- published
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
force-depth: 0
- name: Setup NodeJS
uses: actions/setup_node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org
- name: Install packages
run: npm install
- name: Run Tests
run: npm run test
- name: Publish packages
run: npm run publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}