@vixoniccom/aqi 0.0.3-dev.4 → 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/.env ADDED
@@ -0,0 +1 @@
1
+ AQI_TOKEN='0056cb17ea607e2c2fa8b385c59df9f4c221e807'
@@ -0,0 +1,132 @@
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
+ AQI_TOKEN: ${{ secrets.AQI_TOKEN }}
85
+
86
+ - name: Verify build.zip exists
87
+ run: |
88
+ if [ ! -f "build.zip" ]; then
89
+ echo "❌ Error: build.zip not found after build process"
90
+ exit 1
91
+ fi
92
+ echo "✅ build.zip found successfully"
93
+ ls -la build.zip
94
+
95
+ - name: Publish to npm
96
+ run: npm publish --access public
97
+ env:
98
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
99
+
100
+ - name: Create GitHub Release
101
+ uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2
102
+ with:
103
+ tag_name: v${{ steps.extract_version.outputs.version }}
104
+ name: v${{ steps.extract_version.outputs.version }}
105
+ body: ${{ steps.changelog.outputs.body }}
106
+ files: build.zip
107
+ env:
108
+ GITHUB_TOKEN: ${{ secrets.PRIVATE_TOKEN_GITHUB }}
109
+
110
+ report-ep:
111
+ name: Report EP Metrics
112
+ runs-on: ubuntu-latest
113
+ needs: [build]
114
+ if: always()
115
+
116
+ steps:
117
+ - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
118
+ with:
119
+ fetch-depth: 0
120
+ token: ${{ secrets.PRIVATE_TOKEN_GITHUB }}
121
+
122
+ - uses: vismagroup/Jira-SDOP-Reporter@v1
123
+ with:
124
+ token: ${{ github.token }}
125
+ deployment-start: ${{ needs.build.outputs.deployment-start }}
126
+ deployment-status: ${{ needs.build.result == 'success' && 'success' || 'failure' }}
127
+ jira-token: ${{ secrets.JIRA_TOKEN }}
128
+ jira-issue-summary: "store-gallery-image release v${{ needs.build.outputs.version }}"
129
+ jira-issue-project: "SDOP"
130
+ jira-issue-components: |
131
+ ${{ secrets.EP_JIRA_COMPONENT }}
132
+ 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@master
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@master
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,6 +2,17 @@
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-air-quality-index/compare/v0.0.3-dev.6...v0.0.3) (2026-06-03)
6
+
7
+ ### [0.0.3-dev.6](https://github.com/Vixonic/store-air-quality-index/compare/v0.0.2...v0.0.3-dev.6) (2026-06-03)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **services:** prevent caching invalid AQI data and fix city input capitalization ([08069ee](https://github.com/Vixonic/store-air-quality-index/commit/08069ee0dbb30044cca73f4e6f5f3952803d2108))
13
+
14
+ ### [0.0.3-dev.5](https://github.com/Vixonic/store-air-quality-index/compare/v0.0.3-dev.4...v0.0.3-dev.5) (2026-06-03)
15
+
5
16
  ### [0.0.3-dev.4](https://github.com/Vixonic/store-air-quality-index/compare/v0.0.2...v0.0.3-dev.4) (2026-06-03)
6
17
 
7
18
  ### [0.0.3-dev.3](https://github.com/Vixonic/store-air-quality-index/compare/v0.0.2...v0.0.3-dev.3) (2026-06-03)