@vixoniccom/birthdays 0.7.17 → 0.7.18-dev.0
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 +6 -121
- package/CHANGELOG.md +7 -0
- package/build.zip +0 -0
- package/configuration/appearanceGroup/AppearanceInputs.ts +11 -0
- package/configuration.json +14 -0
- package/package.json +1 -1
|
@@ -9,125 +9,10 @@ on:
|
|
|
9
9
|
workflow_dispatch:
|
|
10
10
|
|
|
11
11
|
jobs:
|
|
12
|
-
|
|
13
|
-
name: Build and Publish Package
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
environment: production
|
|
12
|
+
release:
|
|
16
13
|
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
steps:
|
|
23
|
-
- name: Log deployment start
|
|
24
|
-
id: deployment_start
|
|
25
|
-
run: |
|
|
26
|
-
echo "deployment_start=$(date +"%Y-%m-%dT%H:%M:%S%:z")" >> "$GITHUB_OUTPUT"
|
|
27
|
-
|
|
28
|
-
- name: Checkout repository
|
|
29
|
-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
30
|
-
with:
|
|
31
|
-
ref: ${{ github.event.pull_request.base.ref || github.ref_name }}
|
|
32
|
-
fetch-depth: 0
|
|
33
|
-
token: ${{ secrets.PRIVATE_TOKEN_GITHUB }}
|
|
34
|
-
|
|
35
|
-
- name: Setup Node.js 20
|
|
36
|
-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
|
37
|
-
with:
|
|
38
|
-
node-version: '20'
|
|
39
|
-
registry-url: 'https://registry.npmjs.org'
|
|
40
|
-
scope: '@vixoniccom'
|
|
41
|
-
|
|
42
|
-
- name: Configure npm authentication
|
|
43
|
-
run: |
|
|
44
|
-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
|
45
|
-
echo "@vixoniccom:registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
46
|
-
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
47
|
-
|
|
48
|
-
- name: Cache node modules
|
|
49
|
-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
|
|
50
|
-
with:
|
|
51
|
-
path: ~/.npm
|
|
52
|
-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
53
|
-
restore-keys: |
|
|
54
|
-
${{ runner.os }}-node-
|
|
55
|
-
|
|
56
|
-
- name: Install dependencies
|
|
57
|
-
run: npm ci
|
|
58
|
-
env:
|
|
59
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
60
|
-
|
|
61
|
-
- name: Bump version
|
|
62
|
-
run: |
|
|
63
|
-
git config user.name "github-actions[bot]"
|
|
64
|
-
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
65
|
-
npm run release -- --no-verify
|
|
66
|
-
git push --follow-tags origin HEAD:${{ github.event.pull_request.base.ref || github.ref_name }}
|
|
67
|
-
env:
|
|
68
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
69
|
-
|
|
70
|
-
- name: Extract changelog for this release
|
|
71
|
-
id: changelog
|
|
72
|
-
run: |
|
|
73
|
-
BODY=$(awk '/^## \[/{if(p) exit; p=1} p' CHANGELOG.md)
|
|
74
|
-
echo "body<<EOF" >> $GITHUB_OUTPUT
|
|
75
|
-
echo "$BODY" >> $GITHUB_OUTPUT
|
|
76
|
-
echo "EOF" >> $GITHUB_OUTPUT
|
|
77
|
-
|
|
78
|
-
- name: Extract version from package.json
|
|
79
|
-
id: extract_version
|
|
80
|
-
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
|
|
81
|
-
|
|
82
|
-
- name: Build package
|
|
83
|
-
run: npm run prepublish
|
|
84
|
-
env:
|
|
85
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
86
|
-
|
|
87
|
-
- name: Verify build.zip exists
|
|
88
|
-
run: |
|
|
89
|
-
if [ ! -f "build.zip" ]; then
|
|
90
|
-
echo "❌ Error: build.zip not found after build process"
|
|
91
|
-
exit 1
|
|
92
|
-
fi
|
|
93
|
-
echo "✅ build.zip found successfully"
|
|
94
|
-
ls -la build.zip
|
|
95
|
-
|
|
96
|
-
- name: Publish to npm
|
|
97
|
-
run: npm publish --access public
|
|
98
|
-
env:
|
|
99
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
100
|
-
|
|
101
|
-
- name: Create GitHub Release
|
|
102
|
-
uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2
|
|
103
|
-
with:
|
|
104
|
-
tag_name: v${{ steps.extract_version.outputs.version }}
|
|
105
|
-
name: v${{ steps.extract_version.outputs.version }}
|
|
106
|
-
body: ${{ steps.changelog.outputs.body }}
|
|
107
|
-
files: build.zip
|
|
108
|
-
env:
|
|
109
|
-
GITHUB_TOKEN: ${{ secrets.PRIVATE_TOKEN_GITHUB }}
|
|
110
|
-
|
|
111
|
-
report-ep:
|
|
112
|
-
name: Report EP Metrics
|
|
113
|
-
runs-on: ubuntu-latest
|
|
114
|
-
needs: [build]
|
|
115
|
-
if: always()
|
|
116
|
-
|
|
117
|
-
steps:
|
|
118
|
-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
119
|
-
with:
|
|
120
|
-
fetch-depth: 0
|
|
121
|
-
token: ${{ secrets.PRIVATE_TOKEN_GITHUB }}
|
|
122
|
-
|
|
123
|
-
- uses: vismagroup/Jira-SDOP-Reporter@v1
|
|
124
|
-
with:
|
|
125
|
-
token: ${{ github.token }}
|
|
126
|
-
deployment-start: ${{ needs.build.outputs.deployment-start }}
|
|
127
|
-
deployment-status: ${{ needs.build.result == 'success' && 'success' || 'failure' }}
|
|
128
|
-
jira-token: ${{ secrets.JIRA_TOKEN }}
|
|
129
|
-
jira-issue-summary: "store-gallery-image release v${{ needs.build.outputs.version }}"
|
|
130
|
-
jira-issue-project: "SDOP"
|
|
131
|
-
jira-issue-components: |
|
|
132
|
-
${{ secrets.EP_JIRA_COMPONENT }}
|
|
133
|
-
jira-issue-build-info: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
14
|
+
uses: Vixonic/github-workflows/.github/workflows/store-release.yml@a36ca67ada54f446e3858141085f4ee2c485d83a # main
|
|
15
|
+
with:
|
|
16
|
+
app-name: store-birthdays
|
|
17
|
+
default-branch: ${{ github.event.pull_request.base.ref || github.ref_name }}
|
|
18
|
+
secrets: inherit
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.7.18-dev.0](https://github.com/Vixonic/store-birthdays/compare/v0.7.17...v0.7.18-dev.0) (2026-10-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **ci:** migrate deploy to reusable workflow pinned to commit SHA ([#38](https://github.com/Vixonic/store-birthdays/issues/38)) ([7a9294d](https://github.com/Vixonic/store-birthdays/commit/7a9294d4d9f35a1d383445317618d149f6931dc3))
|
|
11
|
+
|
|
5
12
|
### [0.7.17](https://github.com/Vixonic/store-birthdays/compare/v0.7.16...v0.7.17) (2026-09-02)
|
|
6
13
|
|
|
7
14
|
|
package/build.zip
CHANGED
|
Binary file
|
|
@@ -9,6 +9,8 @@ import {
|
|
|
9
9
|
} from '@vixoniccom/modules'
|
|
10
10
|
import { ShowValidations } from '../utils'
|
|
11
11
|
|
|
12
|
+
const decorationsAvailable = `${ShowValidations.presetActive} || {{orientation}} !== "v"`
|
|
13
|
+
|
|
12
14
|
export const appearanceInputs = [
|
|
13
15
|
new Label({ label: 'Tema predefinido' }),
|
|
14
16
|
new SelectInput({
|
|
@@ -21,6 +23,15 @@ export const appearanceInputs = [
|
|
|
21
23
|
{ label: 'Cumpleaños con foto', value: 'preset2' },
|
|
22
24
|
],
|
|
23
25
|
}),
|
|
26
|
+
new Label({ label: 'Decoraciones', show: decorationsAvailable }),
|
|
27
|
+
new Switch({
|
|
28
|
+
id: 'birthdayDecorations',
|
|
29
|
+
label: 'Decoraciones de cumpleaños',
|
|
30
|
+
displayOnTrue: 'gorro, halo y globos en quien cumple hoy',
|
|
31
|
+
displayOnFalse: 'sin decoraciones',
|
|
32
|
+
defaultValue: false,
|
|
33
|
+
show: decorationsAvailable,
|
|
34
|
+
}),
|
|
24
35
|
new Label({ label: 'Orientación', show: ShowValidations.personalizado }),
|
|
25
36
|
new SelectInput({
|
|
26
37
|
id: 'orientation',
|
package/configuration.json
CHANGED
|
@@ -128,6 +128,20 @@
|
|
|
128
128
|
}
|
|
129
129
|
]
|
|
130
130
|
},
|
|
131
|
+
{
|
|
132
|
+
"type": "label",
|
|
133
|
+
"label": "Decoraciones",
|
|
134
|
+
"show": "({{themePreset}} && {{themePreset}} !== \"personalizado\") || {{orientation}} !== \"v\""
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "birthdayDecorations",
|
|
138
|
+
"label": "Decoraciones de cumpleaños",
|
|
139
|
+
"show": "({{themePreset}} && {{themePreset}} !== \"personalizado\") || {{orientation}} !== \"v\"",
|
|
140
|
+
"type": "switch",
|
|
141
|
+
"defaultValue": false,
|
|
142
|
+
"displayOnTrue": "gorro, halo y globos en quien cumple hoy",
|
|
143
|
+
"displayOnFalse": "sin decoraciones"
|
|
144
|
+
},
|
|
131
145
|
{
|
|
132
146
|
"type": "label",
|
|
133
147
|
"label": "Orientación",
|