Skip to content

Merge pull request #48 from NJUPT-SAST/feature/magic&cli #34

Merge pull request #48 from NJUPT-SAST/feature/magic&cli

Merge pull request #48 from NJUPT-SAST/feature/magic&cli #34

Workflow file for this run

name: Publish react_ui to npmjs
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: pnpm
registry-url: 'https://registry.npmjs.org'
- run: pnpm i
- run: pnpm ui-react:build
- run: pnpm publish --filter @ui-aurora/react --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}