Skip to content

Commit ab09322

Browse files
authored
Merge pull request #403 from asus4/npm-oidc-publish
Remove NPM_TOKEN from publishing script
2 parents 484df65 + aa68ae9 commit ab09322

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

.github/workflows/publish-packages.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@ on:
55
workflow_dispatch:
66
env:
77
# Dry-run on workflow_dispatch
8-
NPM_OPTS: ${{ github.event_name == 'workflow_dispatch' && '--dry-run' || '' }}
8+
NPM_OPTS: ${{ github.event_name == 'workflow_dispatch' && '--dry-run --tag canary' || '' }}
9+
permissions:
10+
id-token: write
11+
contents: read
912
jobs:
1013
publish:
1114
runs-on: ubuntu-latest
1215
steps:
1316
- uses: actions/checkout@v4
1417
with:
1518
lfs: true
16-
- uses: actions/setup-node@v4
19+
- uses: actions/setup-node@v5
1720
with:
21+
node-version: 'latest'
1822
registry-url: 'https://registry.npmjs.org'
23+
# Publish NPM using OIDC token
24+
- run: npm install -g npm@latest
1925
- run: npm publish ${{ env.NPM_OPTS }}
2026
working-directory: Packages/com.github.asus4.tflite
21-
env:
22-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2327
- run: npm publish ${{ env.NPM_OPTS }}
2428
working-directory: Packages/com.github.asus4.tflite.common
25-
env:
26-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2729
- run: npm publish ${{ env.NPM_OPTS }}
2830
working-directory: Packages/com.github.asus4.mediapipe
29-
env:
30-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

Packages/com.github.asus4.mediapipe/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
"license": "Apache License 2.0",
1111
"unity": "2022.3",
1212
"unityRelease": "0f1",
13-
"version": "2.19.0-p2",
13+
"version": "2.19.0-p3",
1414
"hideInEditor": false,
1515
"dependencies": {
16-
"com.github.asus4.tflite": "2.19.0-p2",
17-
"com.github.asus4.tflite.common": "2.19.0-p2"
16+
"com.github.asus4.tflite": "2.19.0-p3",
17+
"com.github.asus4.tflite.common": "2.19.0-p3"
1818
},
1919
"documentationUrl": "https://github.com/asus4/tf-lite-unity-sample",
2020
"changelogUrl": "https://github.com/asus4/tf-lite-unity-sample/releases",

Packages/com.github.asus4.tflite.common/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
"license": "Apache License 2.0",
1010
"unity": "2022.3",
1111
"unityRelease": "0f1",
12-
"version": "2.19.0-p2",
12+
"version": "2.19.0-p3",
1313
"hideInEditor": false,
1414
"dependencies": {
1515
"com.unity.burst": "1.8.12",
16-
"com.github.asus4.tflite": "2.19.0-p2"
16+
"com.github.asus4.tflite": "2.19.0-p3"
1717
},
1818
"repository": {
1919
"type": "git",

Packages/com.github.asus4.tflite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"license": "Apache License 2.0",
1010
"unity": "2022.3",
1111
"unityRelease": "0f1",
12-
"version": "2.19.0-p2",
12+
"version": "2.19.0-p3",
1313
"hideInEditor": false,
1414
"repository": {
1515
"type": "git",

Packages/packages-lock.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"depth": 0,
1313
"source": "embedded",
1414
"dependencies": {
15-
"com.github.asus4.tflite": "2.19.0-p2",
16-
"com.github.asus4.tflite.common": "2.19.0-p2"
15+
"com.github.asus4.tflite": "2.19.0-p3",
16+
"com.github.asus4.tflite.common": "2.19.0-p3"
1717
}
1818
},
1919
"com.github.asus4.texture-source": {
@@ -37,7 +37,7 @@
3737
"source": "embedded",
3838
"dependencies": {
3939
"com.unity.burst": "1.8.12",
40-
"com.github.asus4.tflite": "2.19.0-p2"
40+
"com.github.asus4.tflite": "2.19.0-p3"
4141
}
4242
},
4343
"com.unity.2d.sprite": {

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ Included prebuilt libraries:
6868
],
6969
"dependencies": {
7070
// Core TensorFlow Lite libraries
71-
"com.github.asus4.tflite": "2.19.0-p2",
71+
"com.github.asus4.tflite": "2.19.0-p3",
7272
// Optional: Utilities for TFLite
73-
"com.github.asus4.tflite.common": "2.19.0-p2",
73+
"com.github.asus4.tflite.common": "2.19.0-p3",
7474
// Optional: Utilities for MediaPipe
75-
"com.github.asus4.mediapipe": "2.19.0-p2",
75+
"com.github.asus4.mediapipe": "2.19.0-p3",
7676
// Optional: Async methods are available only when UniTask is installed
7777
"com.cysharp.unitask": "2.5.10",
7878
...// other dependencies

0 commit comments

Comments
 (0)