Skip to content

add registry-url

add registry-url #5

Workflow file for this run

name: Build and Publish
on:
push:
tags:
- "v*.*.*"
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20.x" # Change this to your desired Node.js version
registry-url: "https://registry.npmjs.org"
- name: Install pnpm
run: npm install -g pnpm
# - name: Build UI
# working-directory: ui
# run: |
# pnpm install
# pnpm build
- name: Build API
working-directory: api
run: |
pnpm install
pnpm build
- name: Publish to npm
working-directory: api
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # NPM_TOKEN is a GitHub secret containing your npm token