Skip to content

Chore lint (#91)

Chore lint (#91) #36

Workflow file for this run

name: Publish NPM Package
on:
push:
tags:
- 'v*'
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 8
- name: Install dependencies
working-directory: ./ui/ModelModal
run: pnpm install
- name: Build package
working-directory: ./ui/ModelModal
run: pnpm build
- name: Update package version from tag
working-directory: ./ui/ModelModal
run: |
TAG_VERSION=${GITHUB_REF#refs/tags/v}
npm version $TAG_VERSION --no-git-tag-version
- name: Publish to NPM Registry
working-directory: ./ui/ModelModal
run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}