Skip to content

Update main.yml

Update main.yml #4

Workflow file for this run

name: "publish npm"
on: push
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16 # Updated to Node.js 16
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: npm install
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH }}