@vixoniccom/bitly-news-internal 0.0.3-dev.2 → 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 +50 -23
- package/.github/workflows/sonarqube.yml +4 -3
- package/CHANGELOG.md +12 -0
- package/build.zip +0 -0
- package/package.json +1 -2
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
name: Publish to NPM
|
|
1
|
+
name: Publish to NPM
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
|
|
5
|
-
push:
|
|
4
|
+
pull_request:
|
|
6
5
|
branches:
|
|
7
6
|
- development
|
|
7
|
+
- master
|
|
8
|
+
- main
|
|
9
|
+
workflow_dispatch:
|
|
8
10
|
|
|
9
11
|
jobs:
|
|
10
12
|
publish:
|
|
11
13
|
runs-on: ubuntu-latest
|
|
12
|
-
permissions:
|
|
13
|
-
contents: write
|
|
14
14
|
|
|
15
15
|
steps:
|
|
16
16
|
- name: Checkout code
|
|
17
|
-
uses: actions/checkout@v4
|
|
17
|
+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
18
18
|
with:
|
|
19
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]"
|
|
20
|
+
persist-credentials: false
|
|
25
21
|
|
|
26
22
|
- name: Setup Node.js 20
|
|
27
|
-
uses: actions/setup-node@v4
|
|
23
|
+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
|
28
24
|
with:
|
|
29
25
|
node-version: '20'
|
|
30
26
|
registry-url: 'https://registry.npmjs.org'
|
|
@@ -37,7 +33,7 @@ jobs:
|
|
|
37
33
|
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
38
34
|
|
|
39
35
|
- name: Cache node modules
|
|
40
|
-
uses: actions/cache@v4
|
|
36
|
+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
|
|
41
37
|
with:
|
|
42
38
|
path: ~/.npm
|
|
43
39
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
@@ -49,8 +45,18 @@ jobs:
|
|
|
49
45
|
env:
|
|
50
46
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
51
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
|
+
|
|
52
58
|
- name: Build package
|
|
53
|
-
run: npm run
|
|
59
|
+
run: npm run prepublishOnly
|
|
54
60
|
env:
|
|
55
61
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
56
62
|
|
|
@@ -63,20 +69,41 @@ jobs:
|
|
|
63
69
|
echo "✅ build.zip found successfully"
|
|
64
70
|
ls -la build.zip
|
|
65
71
|
|
|
66
|
-
- name:
|
|
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'
|
|
67
90
|
run: |
|
|
68
|
-
echo "
|
|
69
|
-
npm
|
|
70
|
-
git push --follow-tags
|
|
91
|
+
echo "Publishing to npm..."
|
|
92
|
+
npm publish --access public
|
|
71
93
|
env:
|
|
72
94
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
73
95
|
|
|
74
|
-
- name:
|
|
96
|
+
- name: Publication success
|
|
97
|
+
if: steps.check-version.outputs.version-exists == 'false'
|
|
75
98
|
run: |
|
|
76
99
|
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
77
100
|
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
78
|
-
echo "📦 Publishing $PACKAGE_NAME@$PACKAGE_VERSION to npm..."
|
|
79
|
-
npm publish --access public
|
|
80
101
|
echo "🎉 Successfully published $PACKAGE_NAME@$PACKAGE_VERSION to npm!"
|
|
81
|
-
|
|
82
|
-
|
|
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'"
|
|
@@ -11,19 +11,20 @@ jobs:
|
|
|
11
11
|
sonarqube:
|
|
12
12
|
runs-on: ubuntu-latest
|
|
13
13
|
steps:
|
|
14
|
-
- uses: actions/checkout@v4
|
|
14
|
+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
15
15
|
with:
|
|
16
16
|
# Disabling shallow clone is recommended for improving relevancy of reporting.
|
|
17
17
|
fetch-depth: 0
|
|
18
|
+
persist-credentials: false
|
|
18
19
|
|
|
19
20
|
- name: SonarQube Scan
|
|
20
|
-
uses: sonarsource/sonarqube-scan-action@
|
|
21
|
+
uses: sonarsource/sonarqube-scan-action@299e4b793aaa83bf2aba7c9c14bedbb485688ec4 # v7.1.0
|
|
21
22
|
env:
|
|
22
23
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
23
24
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
|
24
25
|
|
|
25
26
|
- name: SonarQube Quality Gate Check
|
|
26
|
-
uses: sonarsource/sonarqube-quality-gate-action@
|
|
27
|
+
uses: sonarsource/sonarqube-quality-gate-action@cf038b0e0cdecfa9e56c198bbb7d21d751d62c3b # v1.2.0
|
|
27
28
|
timeout-minutes: 5
|
|
28
29
|
env:
|
|
29
30
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
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](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
|
+
|
|
5
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)
|
|
6
18
|
|
|
7
19
|
|
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
|
},
|