@vixoniccom/birthdays 0.7.7-dev.20 → 0.7.7-dev.21

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.
@@ -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@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@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@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@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@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 }}
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
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.7-dev.21](https://github.com/Vixonic/store-birthdays/compare/v0.7.7-dev.19...v0.7.7-dev.21) (2026-03-18)
6
+
5
7
  ### [0.7.7-dev.20](https://github.com/Vixonic/store-birthdays/compare/v0.7.7-dev.19...v0.7.7-dev.20) (2026-03-17)
6
8
 
7
9
  ### [0.7.7-dev.19](https://github.com/Vixonic/store-birthdays/compare/v0.7.7-dev.18...v0.7.7-dev.19) (2026-03-17)
package/build.zip CHANGED
Binary file
@@ -10,7 +10,7 @@ export const dataInputs = [
10
10
  label: 'Selecciona la fuente de los cumpleaños',
11
11
  items: [
12
12
  { label: 'Documento', value: 'BirthdayAppService' },
13
- { label: 'Administración local', value: 'LocalBirthdayAppService' },
13
+ { label: 'Administración local', value: 'LocalAppSheetsService' },
14
14
  { label: 'Rexmas', value: 'RexmasBirthdayService' },
15
15
  { label: 'Buk', value: 'BukBirthdayService' },
16
16
  { label: 'Talana', value: 'TalanaBirthdayService' }
@@ -27,8 +27,8 @@ export const dataInputs = [
27
27
  new ServiceInput({
28
28
  id: 'localService',
29
29
  label: 'Administración local',
30
- serviceType: 'LocalBirthdayAppService',
31
- show: serviceEnabled.localBirthdayAppServiceEnabled
30
+ serviceType: 'LocalAppSheetsService',
31
+ show: serviceEnabled.localAppSheetsServiceEnabled
32
32
  }),
33
33
  new ServiceInput({
34
34
  id: 'rexmasService',
@@ -13,7 +13,7 @@ export const ShowValidations = {
13
13
 
14
14
  export const serviceEnabled = {
15
15
  birthdayAppServiceEnabled: '{{displayService}} === "BirthdayAppService"',
16
- localBirthdayAppServiceEnabled: '{{displayService}} === "LocalBirthdayAppService"',
16
+ localAppSheetsServiceEnabled: '{{displayService}} === "LocalAppSheetsService"',
17
17
  rexmasServiceEnabled: '{{displayService}} === "RexmasBirthdayService"',
18
18
  bukServiceEnabled: '{{displayService}} === "BukBirthdayService"',
19
19
  talanaServiceEnabled: '{{displayService}} === "TalanaBirthdayService"',
@@ -21,7 +21,7 @@
21
21
  },
22
22
  {
23
23
  "label": "Administración local",
24
- "value": "LocalBirthdayAppService"
24
+ "value": "LocalAppSheetsService"
25
25
  },
26
26
  {
27
27
  "label": "Rexmas",
@@ -48,9 +48,9 @@
48
48
  {
49
49
  "id": "localService",
50
50
  "label": "Administración local",
51
- "show": "{{displayService}} === \"LocalBirthdayAppService\"",
51
+ "show": "{{displayService}} === \"LocalAppSheetsService\"",
52
52
  "type": "service-input",
53
- "serviceType": "LocalBirthdayAppService"
53
+ "serviceType": "LocalAppSheetsService"
54
54
  },
55
55
  {
56
56
  "id": "rexmasService",
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "author": {
9
9
  "name": "Lorenzo Alfaro Bravo"
10
10
  },
11
- "version": "0.7.7-dev.20",
11
+ "version": "0.7.7-dev.21",
12
12
  "scripts": {
13
13
  "prepublish": "vixonic-module-packager --mode=build",
14
14
  "watch": "vixonic-module-packager --mode=watch",
@@ -29,8 +29,8 @@
29
29
  "@types/lodash": "^4.17.0",
30
30
  "@types/react": "^18.3.23",
31
31
  "@types/react-dom": "^18.3.7",
32
- "@vixoniccom/module-packager": "2.12.0-dev.10",
33
- "@vixoniccom/modules": "^2.25.0-dev.5",
32
+ "@vixoniccom/module-packager": "^2.13.0",
33
+ "@vixoniccom/modules": "^2.25.0-dev.6",
34
34
  "standard-version": "^9.5.0"
35
35
  }
36
36
  }
@@ -1 +1,2 @@
1
- sonar.projectKey=Vixonic_store-birthdays_7769e3be-dc9d-4ca7-bf1a-4bfa182a053c
1
+ sonar.projectKey=Vixonic_store-birthdays_7769e3be-dc9d-4ca7-bf1a-4bfa182a053c
2
+ sonar.exclusions=.github/**/*
@@ -1,108 +0,0 @@
1
- name: Publish to NPM
2
-
3
- on:
4
- pull_request:
5
- branches:
6
- - development
7
- - master
8
- - main
9
- workflow_dispatch:
10
-
11
- jobs:
12
- publish:
13
- runs-on: ubuntu-latest
14
-
15
- steps:
16
- - name: Checkout code
17
- uses: actions/checkout@v4
18
- with:
19
- fetch-depth: 0
20
-
21
- - name: Setup Node.js 20
22
- uses: actions/setup-node@v4
23
- with:
24
- node-version: '20'
25
- registry-url: 'https://registry.npmjs.org'
26
- scope: '@vixoniccom'
27
-
28
- - name: Configure npm authentication
29
- run: |
30
- echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
31
- echo "@vixoniccom:registry=https://registry.npmjs.org/" >> ~/.npmrc
32
- echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
33
-
34
- - name: Cache node modules
35
- uses: actions/cache@v4
36
- with:
37
- path: ~/.npm
38
- key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
39
- restore-keys: |
40
- ${{ runner.os }}-node-
41
-
42
- - name: Install dependencies
43
- run: npm ci
44
- env:
45
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
46
-
47
- - name: Configure Git
48
- run: |
49
- git config --global user.name "github-actions[bot]"
50
- git config --global user.email "github-actions[bot]@users.noreply.github.com"
51
-
52
- - name: Create release version
53
- run: npm run release
54
- env:
55
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
56
-
57
- - name: Build package
58
- run: npm run prepublish
59
- env:
60
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
61
-
62
- - name: Verify build.zip exists
63
- run: |
64
- if [ ! -f "build.zip" ]; then
65
- echo "❌ Error: build.zip not found after build process"
66
- exit 1
67
- fi
68
- echo "✅ build.zip found successfully"
69
- ls -la build.zip
70
-
71
- - name: Check if version already exists on npm
72
- id: check-version
73
- run: |
74
- PACKAGE_NAME=$(node -p "require('./package.json').name")
75
- PACKAGE_VERSION=$(node -p "require('./package.json').version")
76
-
77
- echo "Checking if $PACKAGE_NAME@$PACKAGE_VERSION exists on npm..."
78
-
79
- if npm view "$PACKAGE_NAME@$PACKAGE_VERSION" version 2>/dev/null; then
80
- echo "version-exists=true" >> $GITHUB_OUTPUT
81
- echo "⚠️ Version $PACKAGE_VERSION already exists on npm"
82
- else
83
- echo "version-exists=false" >> $GITHUB_OUTPUT
84
- echo "✅ Version $PACKAGE_VERSION does not exist on npm - ready to publish"
85
- fi
86
-
87
- - name: Publish to npm
88
- if: steps.check-version.outputs.version-exists == 'false'
89
- run: |
90
- echo "Publishing to npm..."
91
- npm publish --access public
92
- env:
93
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
94
-
95
- - name: Publication success
96
- if: steps.check-version.outputs.version-exists == 'false'
97
- run: |
98
- PACKAGE_NAME=$(node -p "require('./package.json').name")
99
- PACKAGE_VERSION=$(node -p "require('./package.json').version")
100
- echo "🎉 Successfully published $PACKAGE_NAME@$PACKAGE_VERSION to npm!"
101
- echo "📦 Package includes build.zip with the compiled application"
102
-
103
- - name: Skip publication
104
- if: steps.check-version.outputs.version-exists == 'true'
105
- run: |
106
- PACKAGE_VERSION=$(node -p "require('./package.json').version")
107
- echo "⏭️ Skipping publication - version $PACKAGE_VERSION already exists on npm"
108
- echo "💡 To publish a new version, update the version in package.json or run 'npm run release'"