Skip to content

Publish UPM packages #3

Publish UPM packages

Publish UPM packages #3

name: Publish UPM packages
on:
release:
types: [published]
workflow_dispatch:
env:
# Dry-run on workflow_dispatch
NPM_OPTS: ${{ github.event_name == 'workflow_dispatch' && '--dry-run' || '' }}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
- run: npm publish ${{ env.NPM_OPTS }}
working-directory: Packages/com.github.asus4.tflite
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: npm publish ${{ env.NPM_OPTS }}
working-directory: Packages/com.github.asus4.tflite.common
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: npm publish ${{ env.NPM_OPTS }}
working-directory: Packages/com.github.asus4.mediapipe
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}