Skip to content

v2.16.1-p1

v2.16.1-p1 #4

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}}