Skip to content

πŸš€ chore(workflow): use npm publish workflow #6

πŸš€ chore(workflow): use npm publish workflow

πŸš€ chore(workflow): use npm publish workflow #6

Workflow file for this run

name: Node.js Package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set node v20
uses: actions/setup-node@v4
with:
node-version: 20
- name: install dep
uses: borales/actions-yarn@v4
with:
cmd: install
- run: npm run build
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 publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}