@iconicompany/imarketplacetypes 1.0.0 → 1.0.3

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/.env ADDED
@@ -0,0 +1,4 @@
1
+ GOOGLE_GENAI_USE_VERTEXAI=true
2
+ GOOGLE_CLOUD_PROJECT=warm-dynamics-477002-f6
3
+ GOOGLE_CLOUD_LOCATION=global
4
+
@@ -0,0 +1,27 @@
1
+ name: Publish Release to NPM
2
+
3
+ on:
4
+ release:
5
+ types: [created]
6
+
7
+ jobs:
8
+ publish-npm:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ - uses: actions/setup-node@v3
13
+ with:
14
+ node-version: 20
15
+ registry-url: https://registry.npmjs.org/
16
+ - name: Extract tag name
17
+ id: get_version
18
+ run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
19
+ - name: Update package.json
20
+ run: |
21
+ VERSION=${{ steps.get_version.outputs.VERSION }}
22
+ sed -i "s/\"version\": \"1.0.0\"/\"version\": \"$VERSION\"/" package.json
23
+ - run: npm ci
24
+ - run: npm run build
25
+ - run: npm publish
26
+ env:
27
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
@@ -0,0 +1,44 @@
1
+ name: Publish Snapshot to NPM
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main # можешь заменить на любую ветку
7
+
8
+ jobs:
9
+ publish-snapshot:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+
15
+ - uses: actions/setup-node@v3
16
+ with:
17
+ node-version: 20
18
+ registry-url: https://registry.npmjs.org/
19
+
20
+ # Генерация snapshot-версии
21
+ - name: Generate snapshot version
22
+ id: snapshot
23
+ run: |
24
+ SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-8)
25
+ TIMESTAMP=$(date +%Y%m%d%H%M%S)
26
+ VERSION="0.0.0-snapshot.${TIMESTAMP}.${SHORT_SHA}"
27
+ echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
28
+
29
+ # Обновляем version в package.json
30
+ - name: Update package.json version
31
+ run: |
32
+ VERSION=${{ steps.snapshot.outputs.VERSION }}
33
+ jq ".version = \"$VERSION\"" package.json > package.tmp.json
34
+ mv package.tmp.json package.json
35
+
36
+ - run: npm ci
37
+
38
+ - run: npm run build
39
+
40
+ - name: Publish snapshot
41
+ run: npm publish --tag snapshot --access public
42
+ env:
43
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
44
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iconicompany/imarketplacetypes",
3
- "version": "1.0.0",
3
+ "version": "v1.0.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.js",
@@ -8,9 +8,6 @@
8
8
  "scripts": {
9
9
  "build": "tsc"
10
10
  },
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
11
  "devDependencies": {
15
12
  "typescript": "^5.0.0"
16
13
  },
package/bun.lock DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "lockfileVersion": 1,
3
- "workspaces": {
4
- "": {
5
- "name": "@imarketplace/types",
6
- "devDependencies": {
7
- "typescript": "^5.0.0",
8
- },
9
- },
10
- },
11
- "packages": {
12
- "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
13
- }
14
- }