@iconicompany/imarketplacetypes 1.0.0 → 1.0.5

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,44 @@
1
+ name: Publish main branch
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+
9
+ permissions:
10
+ contents: write # нужно для пуша
11
+
12
+ jobs:
13
+ publish-main:
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - uses: actions/checkout@v3
18
+ - uses: actions/setup-node@v3
19
+ with:
20
+ node-version: 20
21
+ registry-url: https://registry.npmjs.org/
22
+
23
+ - name: Install dependencies
24
+ run: npm ci
25
+
26
+ - name: Build
27
+ run: npm run build
28
+
29
+ - name: Bump version
30
+ run: |
31
+ git config user.name "github-actions"
32
+ git config user.email "github-actions@github.com"
33
+ npm version patch --force
34
+
35
+ - name: Publish to NPM
36
+ run: npm publish --access public
37
+ env:
38
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39
+
40
+ - name: Commit and push
41
+ run: |
42
+ git config user.name "github-actions"
43
+ git config user.email "github-actions@github.com"
44
+ git push
@@ -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}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iconicompany/imarketplacetypes",
3
- "version": "1.0.0",
3
+ "version": "1.0.5",
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
  },
@@ -32,4 +29,4 @@
32
29
  "types": "./dist/services/*.d.ts"
33
30
  }
34
31
  }
35
- }
32
+ }
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
- }