Skip to content

update ci

update ci #7

Workflow file for this run

name: Node.js Package
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: echo "Node auth token:"
- run: echo ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
env:
NODE_DEBUG: request
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}