@vixoniccom/birthdays 0.7.4 → 0.7.5-dev.1
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/npm-publish.yml +101 -0
- package/CHANGELOG.md +11 -0
- package/build.zip +0 -0
- package/configuration/dataGroup/DataInputs.ts +13 -6
- package/configuration/utils.ts +4 -3
- package/configuration.json +17 -6
- package/package.json +2 -2
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
name: Publish to NPM
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
- main
|
|
8
|
+
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- master
|
|
11
|
+
- main
|
|
12
|
+
types: [closed]
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
publish:
|
|
16
|
+
# Solo ejecutar si es un push a main/master o un merge a main/master
|
|
17
|
+
if: github.event_name == 'push' || (github.event.pull_request.merged == true && (github.event.pull_request.base.ref == 'master' || github.event.pull_request.base.ref == 'main'))
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- name: Checkout code
|
|
22
|
+
uses: actions/checkout@v4
|
|
23
|
+
with:
|
|
24
|
+
fetch-depth: 0
|
|
25
|
+
|
|
26
|
+
- name: Setup Node.js 20
|
|
27
|
+
uses: actions/setup-node@v4
|
|
28
|
+
with:
|
|
29
|
+
node-version: '20'
|
|
30
|
+
registry-url: 'https://registry.npmjs.org'
|
|
31
|
+
scope: '@vixoniccom'
|
|
32
|
+
|
|
33
|
+
- name: Configure npm authentication
|
|
34
|
+
run: |
|
|
35
|
+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
|
36
|
+
echo "@vixoniccom:registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
37
|
+
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
38
|
+
|
|
39
|
+
- name: Cache node modules
|
|
40
|
+
uses: actions/cache@v3
|
|
41
|
+
with:
|
|
42
|
+
path: ~/.npm
|
|
43
|
+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
44
|
+
restore-keys: |
|
|
45
|
+
${{ runner.os }}-node-
|
|
46
|
+
|
|
47
|
+
- name: Install dependencies
|
|
48
|
+
run: npm ci
|
|
49
|
+
env:
|
|
50
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
51
|
+
|
|
52
|
+
- name: Build package
|
|
53
|
+
run: npm run prepublish
|
|
54
|
+
|
|
55
|
+
- name: Verify build.zip exists
|
|
56
|
+
run: |
|
|
57
|
+
if [ ! -f "build.zip" ]; then
|
|
58
|
+
echo "❌ Error: build.zip not found after build process"
|
|
59
|
+
exit 1
|
|
60
|
+
fi
|
|
61
|
+
echo "✅ build.zip found successfully"
|
|
62
|
+
ls -la build.zip
|
|
63
|
+
|
|
64
|
+
- name: Check if version already exists on npm
|
|
65
|
+
id: check-version
|
|
66
|
+
run: |
|
|
67
|
+
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
68
|
+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
69
|
+
|
|
70
|
+
echo "Checking if $PACKAGE_NAME@$PACKAGE_VERSION exists on npm..."
|
|
71
|
+
|
|
72
|
+
if npm view "$PACKAGE_NAME@$PACKAGE_VERSION" version 2>/dev/null; then
|
|
73
|
+
echo "version-exists=true" >> $GITHUB_OUTPUT
|
|
74
|
+
echo "⚠️ Version $PACKAGE_VERSION already exists on npm"
|
|
75
|
+
else
|
|
76
|
+
echo "version-exists=false" >> $GITHUB_OUTPUT
|
|
77
|
+
echo "✅ Version $PACKAGE_VERSION does not exist on npm - ready to publish"
|
|
78
|
+
fi
|
|
79
|
+
|
|
80
|
+
- name: Publish to npm
|
|
81
|
+
if: steps.check-version.outputs.version-exists == 'false'
|
|
82
|
+
run: |
|
|
83
|
+
echo "Publishing to npm..."
|
|
84
|
+
npm publish --access public
|
|
85
|
+
env:
|
|
86
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
87
|
+
|
|
88
|
+
- name: Publication success
|
|
89
|
+
if: steps.check-version.outputs.version-exists == 'false'
|
|
90
|
+
run: |
|
|
91
|
+
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
92
|
+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
93
|
+
echo "🎉 Successfully published $PACKAGE_NAME@$PACKAGE_VERSION to npm!"
|
|
94
|
+
echo "📦 Package includes build.zip with the compiled application"
|
|
95
|
+
|
|
96
|
+
- name: Skip publication
|
|
97
|
+
if: steps.check-version.outputs.version-exists == 'true'
|
|
98
|
+
run: |
|
|
99
|
+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
100
|
+
echo "⏭️ Skipping publication - version $PACKAGE_VERSION already exists on npm"
|
|
101
|
+
echo "💡 To publish a new version, update the version in package.json or run 'npm run release'"
|
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.7.5-dev.1](https://github.com/Vixonic/store-birthdays/compare/v0.7.5-dev.0...v0.7.5-dev.1) (2025-10-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* Add Talana service to app ([96e9961](https://github.com/Vixonic/store-birthdays/commit/96e9961bbb018de41f0d5cb54b6fd6256e9ae93a))
|
|
11
|
+
* add Talana service to configuration ([c0803c7](https://github.com/Vixonic/store-birthdays/commit/c0803c7e8240558543eb2dc7f755e8d51373695d))
|
|
12
|
+
* CI/CD to birthday app was added with github actions ([c6d2971](https://github.com/Vixonic/store-birthdays/commit/c6d2971d3d88fed4c3cd9b844b3c7f3f461b5a8a))
|
|
13
|
+
|
|
14
|
+
### [0.7.5-dev.0](https://github.com/Vixonic/store-birthdays/compare/v0.7.4...v0.7.5-dev.0) (2025-08-18)
|
|
15
|
+
|
|
5
16
|
### [0.7.4](https://github.com/Vixonic/store-birthdays/compare/v0.7.4-dev.10...v0.7.4) (2025-07-28)
|
|
6
17
|
|
|
7
18
|
### [0.7.4-dev.10](https://github.com/Vixonic/store-birthdays/compare/v0.7.4-dev.9...v0.7.4-dev.10) (2025-07-24)
|
package/build.zip
CHANGED
|
Binary file
|
|
@@ -10,8 +10,9 @@ export const dataInputs = [
|
|
|
10
10
|
label: 'Selecciona la fuente de los cumpleaños',
|
|
11
11
|
items: [
|
|
12
12
|
{ label: 'Documento', value: 'BirthdayAppService' },
|
|
13
|
-
{ label: '
|
|
14
|
-
{ label: '
|
|
13
|
+
{ label: 'Rexmas', value: 'RexmasBirthdayService' },
|
|
14
|
+
{ label: 'Buk', value: 'BukBirthdayService' },
|
|
15
|
+
{ label: 'Talana', value: 'TalanaBirthdayService' }
|
|
15
16
|
],
|
|
16
17
|
defaultValue: 'BirthdayAppService',
|
|
17
18
|
description: 'Selecciona la fuente de los cumpleaños. Por defecto, Documento.'
|
|
@@ -22,6 +23,12 @@ export const dataInputs = [
|
|
|
22
23
|
serviceType: 'BirthdayAppService',
|
|
23
24
|
show: serviceEnabled.birthdayAppServiceEnabled
|
|
24
25
|
}),
|
|
26
|
+
new ServiceInput({
|
|
27
|
+
id: 'rexmasService',
|
|
28
|
+
label: 'Rexmas',
|
|
29
|
+
serviceType: 'RexmasBirthdayService',
|
|
30
|
+
show: serviceEnabled.rexmasServiceEnabled
|
|
31
|
+
}),
|
|
25
32
|
new ServiceInput({
|
|
26
33
|
id: 'bukService',
|
|
27
34
|
label: 'Buk',
|
|
@@ -29,10 +36,10 @@ export const dataInputs = [
|
|
|
29
36
|
show: serviceEnabled.bukServiceEnabled
|
|
30
37
|
}),
|
|
31
38
|
new ServiceInput({
|
|
32
|
-
id: '
|
|
33
|
-
label: '
|
|
34
|
-
serviceType: '
|
|
35
|
-
show: serviceEnabled.
|
|
39
|
+
id: 'talanaService',
|
|
40
|
+
label: 'Talana',
|
|
41
|
+
serviceType: 'TalanaBirthdayService',
|
|
42
|
+
show: serviceEnabled.talanaServiceEnabled
|
|
36
43
|
}),
|
|
37
44
|
new SelectAssetKna({
|
|
38
45
|
id: 'photosZip',
|
package/configuration/utils.ts
CHANGED
|
@@ -12,7 +12,8 @@ export const ShowValidations = {
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
export const serviceEnabled = {
|
|
15
|
-
bukServiceEnabled: '{{displayService}} === "BukBirthdayService"',
|
|
16
|
-
rexmasServiceEnabled: '{{displayService}} === "RexmasBirthdayService"',
|
|
17
15
|
birthdayAppServiceEnabled: '{{displayService}} === "BirthdayAppService"',
|
|
18
|
-
}
|
|
16
|
+
rexmasServiceEnabled: '{{displayService}} === "RexmasBirthdayService"',
|
|
17
|
+
bukServiceEnabled: '{{displayService}} === "BukBirthdayService"',
|
|
18
|
+
talanaServiceEnabled: '{{displayService}} === "TalanaBirthdayService"',
|
|
19
|
+
}
|
package/configuration.json
CHANGED
|
@@ -19,13 +19,17 @@
|
|
|
19
19
|
"label": "Documento",
|
|
20
20
|
"value": "BirthdayAppService"
|
|
21
21
|
},
|
|
22
|
+
{
|
|
23
|
+
"label": "Rexmas",
|
|
24
|
+
"value": "RexmasBirthdayService"
|
|
25
|
+
},
|
|
22
26
|
{
|
|
23
27
|
"label": "Buk",
|
|
24
28
|
"value": "BukBirthdayService"
|
|
25
29
|
},
|
|
26
30
|
{
|
|
27
|
-
"label": "
|
|
28
|
-
"value": "
|
|
31
|
+
"label": "Talana",
|
|
32
|
+
"value": "TalanaBirthdayService"
|
|
29
33
|
}
|
|
30
34
|
],
|
|
31
35
|
"defaultValue": "BirthdayAppService"
|
|
@@ -37,6 +41,13 @@
|
|
|
37
41
|
"type": "service-input",
|
|
38
42
|
"serviceType": "BirthdayAppService"
|
|
39
43
|
},
|
|
44
|
+
{
|
|
45
|
+
"id": "rexmasService",
|
|
46
|
+
"label": "Rexmas",
|
|
47
|
+
"show": "{{displayService}} === \"RexmasBirthdayService\"",
|
|
48
|
+
"type": "service-input",
|
|
49
|
+
"serviceType": "RexmasBirthdayService"
|
|
50
|
+
},
|
|
40
51
|
{
|
|
41
52
|
"id": "bukService",
|
|
42
53
|
"label": "Buk",
|
|
@@ -45,11 +56,11 @@
|
|
|
45
56
|
"serviceType": "BukBirthdayService"
|
|
46
57
|
},
|
|
47
58
|
{
|
|
48
|
-
"id": "
|
|
49
|
-
"label": "
|
|
50
|
-
"show": "{{displayService}} === \"
|
|
59
|
+
"id": "talanaService",
|
|
60
|
+
"label": "Talana",
|
|
61
|
+
"show": "{{displayService}} === \"TalanaBirthdayService\"",
|
|
51
62
|
"type": "service-input",
|
|
52
|
-
"serviceType": "
|
|
63
|
+
"serviceType": "TalanaBirthdayService"
|
|
53
64
|
},
|
|
54
65
|
{
|
|
55
66
|
"id": "photosZip",
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"author": {
|
|
9
9
|
"name": "Lorenzo Alfaro Bravo"
|
|
10
10
|
},
|
|
11
|
-
"version": "0.7.
|
|
11
|
+
"version": "0.7.5-dev.1",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"prepublish": "vixonic-module-packager --mode=build",
|
|
14
14
|
"watch": "vixonic-module-packager --mode=watch",
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"prerelease-dev": "standard-version --prerelease dev"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@vixoniccom/modules": "^2.20.3-dev.0",
|
|
24
23
|
"animejs": "^3.2.2",
|
|
25
24
|
"react": "^18.3.1",
|
|
26
25
|
"react-dom": "^18.3.1"
|
|
@@ -31,6 +30,7 @@
|
|
|
31
30
|
"@types/react": "^18.3.23",
|
|
32
31
|
"@types/react-dom": "^18.3.7",
|
|
33
32
|
"@vixoniccom/module-packager": "2.12.0-dev.10",
|
|
33
|
+
"@vixoniccom/modules": "^2.24.0-dev.0",
|
|
34
34
|
"standard-version": "^9.5.0"
|
|
35
35
|
}
|
|
36
36
|
}
|