@vixoniccom/bitly-news-internal 0.0.3-dev.1 → 0.0.3-dev.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.
@@ -0,0 +1,82 @@
1
+ name: Publish to NPM on Release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+ branches:
7
+ - development
8
+
9
+ jobs:
10
+ publish:
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: write
14
+
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v4
18
+ with:
19
+ fetch-depth: 0
20
+
21
+ - name: Configure git
22
+ run: |
23
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
24
+ git config --global user.name "github-actions[bot]"
25
+
26
+ - name: Setup Node.js 20
27
+ uses: actions/setup-node@v4
28
+ with:
29
+ node-version: '20'
30
+ registry-url: 'https://registry.npmjs.org'
31
+ scope: '@vixoniccom'
32
+
33
+ - name: Configure npm authentication
34
+ run: |
35
+ echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
36
+ echo "@vixoniccom:registry=https://registry.npmjs.org/" >> ~/.npmrc
37
+ echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
38
+
39
+ - name: Cache node modules
40
+ uses: actions/cache@v4
41
+ with:
42
+ path: ~/.npm
43
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
44
+ restore-keys: |
45
+ ${{ runner.os }}-node-
46
+
47
+ - name: Install dependencies
48
+ run: npm ci
49
+ env:
50
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
51
+
52
+ - name: Build package
53
+ run: npm run prepublish
54
+ env:
55
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
56
+
57
+ - name: Verify build.zip exists
58
+ run: |
59
+ if [ ! -f "build.zip" ]; then
60
+ echo "❌ Error: build.zip not found after build process"
61
+ exit 1
62
+ fi
63
+ echo "✅ build.zip found successfully"
64
+ ls -la build.zip
65
+
66
+ - name: Bump version and create release
67
+ run: |
68
+ echo "🔄 Running release..."
69
+ npm run release
70
+ git push --follow-tags
71
+ env:
72
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
73
+
74
+ - name: Publish to npm
75
+ run: |
76
+ PACKAGE_NAME=$(node -p "require('./package.json').name")
77
+ PACKAGE_VERSION=$(node -p "require('./package.json').version")
78
+ echo "📦 Publishing $PACKAGE_NAME@$PACKAGE_VERSION to npm..."
79
+ npm publish --access public
80
+ echo "🎉 Successfully published $PACKAGE_NAME@$PACKAGE_VERSION to npm!"
81
+ env:
82
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -0,0 +1,30 @@
1
+ name: Sonarqube Analysis
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - development
7
+ pull_request:
8
+ types: [opened, synchronize, reopened]
9
+
10
+ jobs:
11
+ sonarqube:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ with:
16
+ # Disabling shallow clone is recommended for improving relevancy of reporting.
17
+ fetch-depth: 0
18
+
19
+ - name: SonarQube Scan
20
+ uses: sonarsource/sonarqube-scan-action@master
21
+ env:
22
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
23
+ SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
24
+
25
+ - name: SonarQube Quality Gate Check
26
+ uses: sonarsource/sonarqube-quality-gate-action@master
27
+ timeout-minutes: 5
28
+ env:
29
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
30
+ SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
package/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.0.3-dev.2](https://github.com/Vixonic/store-bitly-news-internal/compare/v0.0.3-dev.1...v0.0.3-dev.2) (2026-01-21)
6
+
7
+
8
+ ### Features
9
+
10
+ * VXD-820 Add GitHub Actions workflows for NPM publishing and Sonarqube analysis ([71596ca](https://github.com/Vixonic/store-bitly-news-internal/commit/71596ca6824c9689448c4502991c45c03cb8df79))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * VXD-820 Handle qrUrl fallback when bitlyLink is empty and adjust TypeScript configuration ([0c52177](https://github.com/Vixonic/store-bitly-news-internal/commit/0c52177ff08617f80f5a2187a602c31ec537cf8f))
16
+
5
17
  ### [0.0.3-dev.1](https://github.com/Vixonic/store-bitly-news-internal/compare/v0.0.3-dev.0...v0.0.3-dev.1) (2026-01-21)
6
18
 
7
19
  ### [0.0.3-dev.0](https://github.com/Vixonic/store-bitly-news-internal/compare/v0.0.2...v0.0.3-dev.0) (2026-01-21)
package/build.zip CHANGED
Binary file
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "author": {
9
9
  "name": ""
10
10
  },
11
- "version": "0.0.3-dev.1",
11
+ "version": "0.0.3-dev.2",
12
12
  "scripts": {
13
13
  "prepublishOnly": "vixonic-module-packager --mode=build",
14
14
  "watch": "vixonic-module-packager --mode=watch",
@@ -0,0 +1 @@
1
+ sonar.projectKey=Vixonic_store-bitly-news-internal_4669ff36-2bb7-472c-8330-866450a3f366