pi-nvidia-nim 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +42 -0
- package/package.json +12 -3
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: Publish to npm
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: write
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
publish:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- uses: actions/setup-node@v4
|
|
17
|
+
with:
|
|
18
|
+
node-version: 22
|
|
19
|
+
registry-url: https://registry.npmjs.org
|
|
20
|
+
|
|
21
|
+
- name: Check if version already published
|
|
22
|
+
id: check
|
|
23
|
+
run: |
|
|
24
|
+
LOCAL=$(node -p "require('./package.json').version")
|
|
25
|
+
REMOTE=$(npm view pi-nvidia-nim version 2>/dev/null || echo "0.0.0")
|
|
26
|
+
if [ "$LOCAL" = "$REMOTE" ]; then
|
|
27
|
+
echo "needs_bump=true" >> "$GITHUB_OUTPUT"
|
|
28
|
+
else
|
|
29
|
+
echo "needs_bump=false" >> "$GITHUB_OUTPUT"
|
|
30
|
+
fi
|
|
31
|
+
|
|
32
|
+
- name: Bump patch version
|
|
33
|
+
if: steps.check.outputs.needs_bump == 'true'
|
|
34
|
+
run: |
|
|
35
|
+
git config user.name "github-actions"
|
|
36
|
+
git config user.email "github-actions@github.com"
|
|
37
|
+
npm version patch -m "chore: bump version to %s"
|
|
38
|
+
git push
|
|
39
|
+
|
|
40
|
+
- run: npm publish
|
|
41
|
+
env:
|
|
42
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-nvidia-nim",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "NVIDIA NIM API provider extension for pi coding agent — access 100+ models from build.nvidia.com",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"keywords": [
|
|
6
|
+
"keywords": [
|
|
7
|
+
"pi-package"
|
|
8
|
+
],
|
|
7
9
|
"pi": {
|
|
8
|
-
"extensions": [
|
|
10
|
+
"extensions": [
|
|
11
|
+
"./index.ts"
|
|
12
|
+
],
|
|
9
13
|
"image": "https://raw.githubusercontent.com/xRyul/pi-nvidia-nim/main/screenshot.png"
|
|
10
14
|
},
|
|
11
15
|
"scripts": {
|
|
@@ -13,5 +17,10 @@
|
|
|
13
17
|
"build": "echo 'nothing to build'",
|
|
14
18
|
"check": "echo 'nothing to check'"
|
|
15
19
|
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/xRyul/pi-nvidia-nim.git"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://github.com/xRyul/pi-nvidia-nim",
|
|
16
25
|
"license": "MIT"
|
|
17
26
|
}
|