@vixoniccom/news-internal 0.4.21 → 0.4.22
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/main.yml +131 -0
- package/.github/workflows/sonarqube.yml +5 -5
- package/CHANGELOG.md +62 -1
- package/build/main.js +1 -1
- package/build.zip +0 -0
- package/configuration/appearanceGroup/index.ts +2 -2
- package/configuration/index.ts +2 -2
- package/configuration/newsGroup/newsInputs.ts +8 -8
- package/configuration.json +9 -9
- package/package.json +2 -2
- package/sonar-project.properties +2 -1
- package/src/components/App.tsx +2 -17
- package/src/components/NewsContainer/index.tsx +6 -0
- package/src/parameters.d.ts +2 -8
- package/.github/workflows/npm-publish.yml +0 -108
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
name: Deploy job
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
types: [closed]
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
name: Build and Publish Package
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
environment: production
|
|
15
|
+
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
|
|
16
|
+
|
|
17
|
+
outputs:
|
|
18
|
+
version: ${{ steps.extract_version.outputs.version }}
|
|
19
|
+
deployment-start: ${{ steps.deployment_start.outputs.deployment_start }}
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- name: Log deployment start
|
|
23
|
+
id: deployment_start
|
|
24
|
+
run: |
|
|
25
|
+
echo "deployment_start=$(date +"%Y-%m-%dT%H:%M:%S%:z")" >> "$GITHUB_OUTPUT"
|
|
26
|
+
|
|
27
|
+
- name: Checkout repository
|
|
28
|
+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
29
|
+
with:
|
|
30
|
+
fetch-depth: 0
|
|
31
|
+
token: ${{ secrets.PRIVATE_TOKEN_GITHUB }}
|
|
32
|
+
|
|
33
|
+
- name: Setup Node.js 20
|
|
34
|
+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
|
35
|
+
with:
|
|
36
|
+
node-version: '20'
|
|
37
|
+
registry-url: 'https://registry.npmjs.org'
|
|
38
|
+
scope: '@vixoniccom'
|
|
39
|
+
|
|
40
|
+
- name: Configure npm authentication
|
|
41
|
+
run: |
|
|
42
|
+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
|
43
|
+
echo "@vixoniccom:registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
44
|
+
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
45
|
+
|
|
46
|
+
- name: Cache node modules
|
|
47
|
+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
|
|
48
|
+
with:
|
|
49
|
+
path: ~/.npm
|
|
50
|
+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
51
|
+
restore-keys: |
|
|
52
|
+
${{ runner.os }}-node-
|
|
53
|
+
|
|
54
|
+
- name: Install dependencies
|
|
55
|
+
run: npm ci
|
|
56
|
+
env:
|
|
57
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
58
|
+
|
|
59
|
+
- name: Bump version
|
|
60
|
+
run: |
|
|
61
|
+
git config user.name "github-actions[bot]"
|
|
62
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
63
|
+
npm run release -- --no-verify
|
|
64
|
+
git push --follow-tags origin main
|
|
65
|
+
env:
|
|
66
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
67
|
+
|
|
68
|
+
- name: Extract changelog for this release
|
|
69
|
+
id: changelog
|
|
70
|
+
run: |
|
|
71
|
+
BODY=$(awk '/^## \[/{if(p) exit; p=1} p' CHANGELOG.md)
|
|
72
|
+
echo "body<<EOF" >> $GITHUB_OUTPUT
|
|
73
|
+
echo "$BODY" >> $GITHUB_OUTPUT
|
|
74
|
+
echo "EOF" >> $GITHUB_OUTPUT
|
|
75
|
+
|
|
76
|
+
- name: Extract version from package.json
|
|
77
|
+
id: extract_version
|
|
78
|
+
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
|
|
79
|
+
|
|
80
|
+
- name: Build package
|
|
81
|
+
run: npm run prepublish
|
|
82
|
+
env:
|
|
83
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
84
|
+
|
|
85
|
+
- name: Verify build.zip exists
|
|
86
|
+
run: |
|
|
87
|
+
if [ ! -f "build.zip" ]; then
|
|
88
|
+
echo "❌ Error: build.zip not found after build process"
|
|
89
|
+
exit 1
|
|
90
|
+
fi
|
|
91
|
+
echo "✅ build.zip found successfully"
|
|
92
|
+
ls -la build.zip
|
|
93
|
+
|
|
94
|
+
- name: Publish to npm
|
|
95
|
+
run: npm publish --access public
|
|
96
|
+
env:
|
|
97
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
98
|
+
|
|
99
|
+
- name: Create GitHub Release
|
|
100
|
+
uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2
|
|
101
|
+
with:
|
|
102
|
+
tag_name: v${{ steps.extract_version.outputs.version }}
|
|
103
|
+
name: v${{ steps.extract_version.outputs.version }}
|
|
104
|
+
body: ${{ steps.changelog.outputs.body }}
|
|
105
|
+
files: build.zip
|
|
106
|
+
env:
|
|
107
|
+
GITHUB_TOKEN: ${{ secrets.PRIVATE_TOKEN_GITHUB }}
|
|
108
|
+
|
|
109
|
+
report-ep:
|
|
110
|
+
name: Report EP Metrics
|
|
111
|
+
runs-on: ubuntu-latest
|
|
112
|
+
needs: [build]
|
|
113
|
+
if: always()
|
|
114
|
+
|
|
115
|
+
steps:
|
|
116
|
+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
117
|
+
with:
|
|
118
|
+
fetch-depth: 0
|
|
119
|
+
token: ${{ secrets.PRIVATE_TOKEN_GITHUB }}
|
|
120
|
+
|
|
121
|
+
- uses: vismagroup/Jira-SDOP-Reporter@v1
|
|
122
|
+
with:
|
|
123
|
+
token: ${{ github.token }}
|
|
124
|
+
deployment-start: ${{ needs.build.outputs.deployment-start }}
|
|
125
|
+
deployment-status: ${{ needs.build.result == 'success' && 'success' || 'failure' }}
|
|
126
|
+
jira-token: ${{ secrets.JIRA_TOKEN }}
|
|
127
|
+
jira-issue-summary: "store-gallery-image release v${{ needs.build.outputs.version }}"
|
|
128
|
+
jira-issue-project: "SDOP"
|
|
129
|
+
jira-issue-components: |
|
|
130
|
+
${{ secrets.EP_JIRA_COMPONENT }}
|
|
131
|
+
jira-issue-build-info: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
@@ -11,20 +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
18
|
|
|
19
19
|
- name: SonarQube Scan
|
|
20
|
-
uses: sonarsource/sonarqube-scan-action@
|
|
20
|
+
uses: sonarsource/sonarqube-scan-action@299e4b793aaa83bf2aba7c9c14bedbb485688ec4 # v7.1.0
|
|
21
21
|
env:
|
|
22
22
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
23
23
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
- name: SonarQube Quality Gate Check
|
|
26
|
-
uses: sonarsource/sonarqube-quality-gate-action@
|
|
26
|
+
uses: sonarsource/sonarqube-quality-gate-action@cf038b0e0cdecfa9e56c198bbb7d21d751d62c3b # v1.2.0
|
|
27
27
|
timeout-minutes: 5
|
|
28
28
|
env:
|
|
29
29
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
30
|
-
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
|
30
|
+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,68 @@
|
|
|
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.4.
|
|
5
|
+
### [0.4.22](https://github.com/Vixonic/store-news-internal/compare/v0.4.21...v0.4.22) (2026-05-14)
|
|
6
|
+
|
|
7
|
+
### [0.4.21](https://github.com/Vixonic/store-news-internal/compare/v0.4.21-dev.28...v0.4.21) (2026-05-14)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* defaultText-update default messages for news display ([8e37ff4](https://github.com/Vixonic/store-news-internal/commit/8e37ff4c86f640c9efffca274f6b1371999dd303))
|
|
13
|
+
* update npm publish workflow to trigger on pull requests ([fa55bb0](https://github.com/Vixonic/store-news-internal/commit/fa55bb035cc73215991ee61f485d93e10926999f))
|
|
14
|
+
|
|
15
|
+
### [0.4.21-dev.40](https://github.com/Vixonic/store-news-internal/compare/v0.4.21-dev.39...v0.4.21-dev.40) (2026-05-11)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* correct appearance group naming and unify title/description fields in news inputs ([f5c2917](https://github.com/Vixonic/store-news-internal/commit/f5c29174c0cf6162928c63b7c95b74301521c27b))
|
|
21
|
+
|
|
22
|
+
### [0.4.21-dev.39](https://github.com/Vixonic/store-news-internal/compare/v0.4.21-dev.38...v0.4.21-dev.39) (2026-05-08)
|
|
23
|
+
|
|
24
|
+
### [0.4.21-dev.38](https://github.com/Vixonic/store-news-internal/compare/v0.4.21-dev.37...v0.4.21-dev.38) (2026-05-08)
|
|
25
|
+
|
|
26
|
+
### [0.4.21-dev.37](https://github.com/Vixonic/store-news-internal/compare/v0.4.21-dev.36...v0.4.21-dev.37) (2026-05-08)
|
|
27
|
+
|
|
28
|
+
### [0.4.21-dev.36](https://github.com/Vixonic/store-news-internal/compare/v0.4.21-dev.35...v0.4.21-dev.36) (2026-05-08)
|
|
29
|
+
|
|
30
|
+
### [0.4.21-dev.35](https://github.com/Vixonic/store-news-internal/compare/v0.4.21-dev.34...v0.4.21-dev.35) (2026-05-08)
|
|
31
|
+
|
|
32
|
+
### [0.4.21-dev.34](https://github.com/Vixonic/store-news-internal/compare/v0.4.21-dev.33...v0.4.21-dev.34) (2026-05-08)
|
|
33
|
+
|
|
34
|
+
### [0.4.21-dev.33](https://github.com/Vixonic/store-news-internal/compare/v0.4.21-dev.28...v0.4.21-dev.33) (2026-05-08)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
38
|
+
|
|
39
|
+
* defaultText-update default messages for news display ([8e37ff4](https://github.com/Vixonic/store-news-internal/commit/8e37ff4c86f640c9efffca274f6b1371999dd303))
|
|
40
|
+
* update npm publish workflow to trigger on pull requests ([fa55bb0](https://github.com/Vixonic/store-news-internal/commit/fa55bb035cc73215991ee61f485d93e10926999f))
|
|
41
|
+
|
|
42
|
+
### [0.4.21-dev.32](https://github.com/Vixonic/store-news-internal/compare/v0.4.21-dev.28...v0.4.21-dev.32) (2026-05-08)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Bug Fixes
|
|
46
|
+
|
|
47
|
+
* defaultText-update default messages for news display ([8e37ff4](https://github.com/Vixonic/store-news-internal/commit/8e37ff4c86f640c9efffca274f6b1371999dd303))
|
|
48
|
+
* update npm publish workflow to trigger on pull requests ([fa55bb0](https://github.com/Vixonic/store-news-internal/commit/fa55bb035cc73215991ee61f485d93e10926999f))
|
|
49
|
+
|
|
50
|
+
### [0.4.21-dev.31](https://github.com/Vixonic/store-news-internal/compare/v0.4.21-dev.28...v0.4.21-dev.31) (2026-05-08)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Bug Fixes
|
|
54
|
+
|
|
55
|
+
* defaultText-update default messages for news display ([8e37ff4](https://github.com/Vixonic/store-news-internal/commit/8e37ff4c86f640c9efffca274f6b1371999dd303))
|
|
56
|
+
* update npm publish workflow to trigger on pull requests ([fa55bb0](https://github.com/Vixonic/store-news-internal/commit/fa55bb035cc73215991ee61f485d93e10926999f))
|
|
57
|
+
|
|
58
|
+
### [0.4.21-dev.30](https://github.com/Vixonic/store-news-internal/compare/v0.4.21-dev.28...v0.4.21-dev.30) (2026-05-08)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Bug Fixes
|
|
62
|
+
|
|
63
|
+
* defaultText-update default messages for news display ([8e37ff4](https://github.com/Vixonic/store-news-internal/commit/8e37ff4c86f640c9efffca274f6b1371999dd303))
|
|
64
|
+
* update npm publish workflow to trigger on pull requests ([fa55bb0](https://github.com/Vixonic/store-news-internal/commit/fa55bb035cc73215991ee61f485d93e10926999f))
|
|
65
|
+
|
|
66
|
+
### [0.4.21-dev.29](https://github.com/Vixonic/store-news-internal/compare/v0.4.21-dev.28...v0.4.21-dev.29) (2026-05-08)
|
|
6
67
|
|
|
7
68
|
|
|
8
69
|
### Bug Fixes
|