nuxt-telegram-mini-app 0.0.5 → 0.0.8

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.
@@ -0,0 +1,65 @@
1
+ name: Publish
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ paths:
8
+ - package.json
9
+
10
+ permissions:
11
+ contents: write
12
+ id-token: write
13
+
14
+ jobs:
15
+ publish:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - name: Check out repository
19
+ env:
20
+ GH_TOKEN: ${{ github.token }}
21
+ run: |
22
+ gh repo clone "$GITHUB_REPOSITORY" .
23
+ git checkout "$GITHUB_SHA"
24
+
25
+ - name: Check version change
26
+ id: version
27
+ env:
28
+ BEFORE_SHA: ${{ github.event.before }}
29
+ run: |
30
+ current_version=$(node -p "require('./package.json').version")
31
+ previous_version=$(git show "$BEFORE_SHA:package.json" 2>/dev/null | node -p "JSON.parse(require('fs').readFileSync(0, 'utf8')).version" || true)
32
+
33
+ if [ "$current_version" = "$previous_version" ]; then
34
+ echo "changed=false" >> "$GITHUB_OUTPUT"
35
+ else
36
+ echo "changed=true" >> "$GITHUB_OUTPUT"
37
+ echo "version=$current_version" >> "$GITHUB_OUTPUT"
38
+ fi
39
+
40
+ - name: Prepare Node.js
41
+ if: steps.version.outputs.changed == 'true'
42
+ run: |
43
+ node --version
44
+ npm install --global npm@11
45
+ npm --version
46
+ npm config set registry https://registry.npmjs.org
47
+
48
+ - name: Install dependencies
49
+ if: steps.version.outputs.changed == 'true'
50
+ run: npm ci
51
+
52
+ - name: Test
53
+ if: steps.version.outputs.changed == 'true'
54
+ run: npm test
55
+
56
+ - name: Publish package
57
+ if: steps.version.outputs.changed == 'true'
58
+ run: npm publish --provenance
59
+
60
+ - name: Create GitHub release
61
+ if: steps.version.outputs.changed == 'true'
62
+ env:
63
+ GH_TOKEN: ${{ github.token }}
64
+ VERSION: ${{ steps.version.outputs.version }}
65
+ run: gh release create "v$VERSION" --target "$GITHUB_SHA" --generate-notes --title "v$VERSION"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-telegram-mini-app",
3
3
  "description": "Structure and configurations for building a Telegram Mini App using Nuxt and TailWind, hosted on Netlify.",
4
- "version": "0.0.5",
4
+ "version": "0.0.8",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "nuxt build",
@@ -23,24 +23,30 @@
23
23
  "dependencies": {
24
24
  "@nuxt/eslint": "^1.16.0",
25
25
  "@nuxt/fonts": "^0.14.0",
26
- "@nuxt/icon": "^2.2.3",
27
- "eslint": "^10.4.1",
28
- "nuxt": "^4.4.8",
29
- "vue": "^3.5.38",
30
- "vue-router": "^5.1.0"
26
+ "@nuxt/icon": "^2.4.1",
27
+ "eslint": "^10.8.0",
28
+ "nuxt": "^4.5.1",
29
+ "vue": "^3.5.40",
30
+ "vue-router": "^5.2.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@nuxtjs/tailwindcss": "^6.14.0",
34
- "@types/node": "^25.9.3",
35
- "@vitest/coverage-v8": "^4.1.8",
34
+ "@types/node": "^26.1.2",
35
+ "@vitest/coverage-v8": "^4.1.10",
36
36
  "@vue/test-utils": "^2.4.11",
37
- "happy-dom": "^20.10.2",
38
- "jsdom": "^29.1.1",
39
- "typescript": "^6.0.3",
40
- "vitest": "^4.1.8"
37
+ "happy-dom": "^20.11.1",
38
+ "jsdom": "^30.0.0",
39
+ "typescript": "^7.0.2",
40
+ "vitest": "^4.1.10"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public",
44
44
  "registry": "https://registry.npmjs.org"
45
+ },
46
+ "allowScripts": {
47
+ "@parcel/watcher@2.5.6": true,
48
+ "fsevents@2.3.3": true,
49
+ "unrs-resolver@1.12.2": true,
50
+ "esbuild@0.27.7": true
45
51
  }
46
52
  }