Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/publish-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ on:
env:
# Dry-run on workflow_dispatch
NPM_OPTS: ${{ github.event_name == 'workflow_dispatch' && '--dry-run' || '' }}
permissions:
id-token: write
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-node@v4
- uses: actions/setup-node@v5
with:
node-version: 'latest'
Comment thread
asus4 marked this conversation as resolved.
registry-url: 'https://registry.npmjs.org'
# Publish NPM using OIDC token
- run: npm install -g npm@latest
- 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}}