@vixoniccom/bitly-news-internal 0.0.3-dev.1 → 0.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/.github/workflows/release.yml +109 -0
- package/.github/workflows/sonarqube.yml +31 -0
- package/CHANGELOG.md +24 -0
- package/build.zip +0 -0
- package/package.json +1 -2
- package/sonar-project.properties +1 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
name: Publish to NPM
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- development
|
|
7
|
+
- master
|
|
8
|
+
- main
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
publish:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout code
|
|
17
|
+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
persist-credentials: false
|
|
21
|
+
|
|
22
|
+
- name: Setup Node.js 20
|
|
23
|
+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
|
24
|
+
with:
|
|
25
|
+
node-version: '20'
|
|
26
|
+
registry-url: 'https://registry.npmjs.org'
|
|
27
|
+
scope: '@vixoniccom'
|
|
28
|
+
|
|
29
|
+
- name: Configure npm authentication
|
|
30
|
+
run: |
|
|
31
|
+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
|
32
|
+
echo "@vixoniccom:registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
33
|
+
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
34
|
+
|
|
35
|
+
- name: Cache node modules
|
|
36
|
+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
|
|
37
|
+
with:
|
|
38
|
+
path: ~/.npm
|
|
39
|
+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
40
|
+
restore-keys: |
|
|
41
|
+
${{ runner.os }}-node-
|
|
42
|
+
|
|
43
|
+
- name: Install dependencies
|
|
44
|
+
run: npm ci
|
|
45
|
+
env:
|
|
46
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
47
|
+
|
|
48
|
+
- name: Configure Git
|
|
49
|
+
run: |
|
|
50
|
+
git config --global user.name "github-actions[bot]"
|
|
51
|
+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
52
|
+
|
|
53
|
+
- name: Create release version
|
|
54
|
+
run: npm run release
|
|
55
|
+
env:
|
|
56
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
57
|
+
|
|
58
|
+
- name: Build package
|
|
59
|
+
run: npm run prepublishOnly
|
|
60
|
+
env:
|
|
61
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
62
|
+
|
|
63
|
+
- name: Verify build.zip exists
|
|
64
|
+
run: |
|
|
65
|
+
if [ ! -f "build.zip" ]; then
|
|
66
|
+
echo "❌ Error: build.zip not found after build process"
|
|
67
|
+
exit 1
|
|
68
|
+
fi
|
|
69
|
+
echo "✅ build.zip found successfully"
|
|
70
|
+
ls -la build.zip
|
|
71
|
+
|
|
72
|
+
- name: Check if version already exists on npm
|
|
73
|
+
id: check-version
|
|
74
|
+
run: |
|
|
75
|
+
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
76
|
+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
77
|
+
|
|
78
|
+
echo "Checking if $PACKAGE_NAME@$PACKAGE_VERSION exists on npm..."
|
|
79
|
+
|
|
80
|
+
if npm view "$PACKAGE_NAME@$PACKAGE_VERSION" version 2>/dev/null; then
|
|
81
|
+
echo "version-exists=true" >> $GITHUB_OUTPUT
|
|
82
|
+
echo "⚠️ Version $PACKAGE_VERSION already exists on npm"
|
|
83
|
+
else
|
|
84
|
+
echo "version-exists=false" >> $GITHUB_OUTPUT
|
|
85
|
+
echo "✅ Version $PACKAGE_VERSION does not exist on npm - ready to publish"
|
|
86
|
+
fi
|
|
87
|
+
|
|
88
|
+
- name: Publish to npm
|
|
89
|
+
if: steps.check-version.outputs.version-exists == 'false'
|
|
90
|
+
run: |
|
|
91
|
+
echo "Publishing to npm..."
|
|
92
|
+
npm publish --access public
|
|
93
|
+
env:
|
|
94
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
95
|
+
|
|
96
|
+
- name: Publication success
|
|
97
|
+
if: steps.check-version.outputs.version-exists == 'false'
|
|
98
|
+
run: |
|
|
99
|
+
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
100
|
+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
101
|
+
echo "🎉 Successfully published $PACKAGE_NAME@$PACKAGE_VERSION to npm!"
|
|
102
|
+
echo "📦 Package includes build.zip with the compiled application"
|
|
103
|
+
|
|
104
|
+
- name: Skip publication
|
|
105
|
+
if: steps.check-version.outputs.version-exists == 'true'
|
|
106
|
+
run: |
|
|
107
|
+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
108
|
+
echo "⏭️ Skipping publication - version $PACKAGE_VERSION already exists on npm"
|
|
109
|
+
echo "💡 To publish a new version, update the version in package.json or run 'npm run release'"
|
|
@@ -0,0 +1,31 @@
|
|
|
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@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
15
|
+
with:
|
|
16
|
+
# Disabling shallow clone is recommended for improving relevancy of reporting.
|
|
17
|
+
fetch-depth: 0
|
|
18
|
+
persist-credentials: false
|
|
19
|
+
|
|
20
|
+
- name: SonarQube Scan
|
|
21
|
+
uses: sonarsource/sonarqube-scan-action@299e4b793aaa83bf2aba7c9c14bedbb485688ec4 # v7.1.0
|
|
22
|
+
env:
|
|
23
|
+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
24
|
+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
|
25
|
+
|
|
26
|
+
- name: SonarQube Quality Gate Check
|
|
27
|
+
uses: sonarsource/sonarqube-quality-gate-action@cf038b0e0cdecfa9e56c198bbb7d21d751d62c3b # v1.2.0
|
|
28
|
+
timeout-minutes: 5
|
|
29
|
+
env:
|
|
30
|
+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
31
|
+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
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](https://github.com/Vixonic/store-bitly-news-internal/compare/v0.0.3-dev.2...v0.0.3) (2026-09-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **ci:** call the build script that actually exists in the release workflow ([8dadef7](https://github.com/Vixonic/store-bitly-news-internal/commit/8dadef7cd505babfbf5f55755a12a3bc594feaee))
|
|
11
|
+
* **ci:** pin 3rd party GitHub Actions and harden checkout credentials ([42208c9](https://github.com/Vixonic/store-bitly-news-internal/commit/42208c9135ccbebdab8bb928ebdcc0e43c367384))
|
|
12
|
+
* remove react-quill dependency from package.json and package-lock.json ([1b4848f](https://github.com/Vixonic/store-bitly-news-internal/commit/1b4848f3d860683e9c0934c0310f1424b7b822cf))
|
|
13
|
+
* updated release ([55255ce](https://github.com/Vixonic/store-bitly-news-internal/commit/55255ce0c930b0b44fb1094d81a6065e4f7ea9a0))
|
|
14
|
+
* VXD-820 address SonarQube suggestions ([2fe070a](https://github.com/Vixonic/store-bitly-news-internal/commit/2fe070a84abc771ed076e7b2d20b710d5c3cc027))
|
|
15
|
+
* VXD-820 Update release workflow to handle version checks and streamline npm publishing ([bd8c6f9](https://github.com/Vixonic/store-bitly-news-internal/commit/bd8c6f92a7b57be8f0fdad11db883971c24751e6))
|
|
16
|
+
|
|
17
|
+
### [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)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* VXD-820 Add GitHub Actions workflows for NPM publishing and Sonarqube analysis ([71596ca](https://github.com/Vixonic/store-bitly-news-internal/commit/71596ca6824c9689448c4502991c45c03cb8df79))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* VXD-820 Handle qrUrl fallback when bitlyLink is empty and adjust TypeScript configuration ([0c52177](https://github.com/Vixonic/store-bitly-news-internal/commit/0c52177ff08617f80f5a2187a602c31ec537cf8f))
|
|
28
|
+
|
|
5
29
|
### [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
30
|
|
|
7
31
|
### [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
|
|
11
|
+
"version": "0.0.3",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"prepublishOnly": "vixonic-module-packager --mode=build",
|
|
14
14
|
"watch": "vixonic-module-packager --mode=watch",
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"react": "^18.3.1",
|
|
26
26
|
"react-dom": "^18.3.1",
|
|
27
27
|
"react-qr-code": "^2.0.2",
|
|
28
|
-
"react-quill": "^1.3.5",
|
|
29
28
|
"react-transition-group": "^4.4.2",
|
|
30
29
|
"uuid": "^8.3.2"
|
|
31
30
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
sonar.projectKey=Vixonic_store-bitly-news-internal_4669ff36-2bb7-472c-8330-866450a3f366
|