@vixoniccom/aniversarios 1.4.1-dev.3 → 1.4.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/release.yml +108 -0
- package/CHANGELOG.md +9 -0
- package/build/main.js +1 -1
- package/build.zip +0 -0
- package/package.json +1 -1
- package/src/App.tsx +1 -1
- package/src/components/AnniversaryItem/components/AnniversaryDate/CircleDate/index.tsx +6 -10
- package/src/components/AnniversaryItem/components/AnniversaryDate/FlatDate/index.tsx +6 -10
- package/src/components/AnniversaryItem/components/AnniversaryDate/OutlineDate/index.tsx +6 -9
- package/src/components/AnniversaryItem/components/AnniversaryDate/TextCalendarDate/index.tsx +5 -9
- package/src/components/AnniversaryItem/components/AnniversaryDate/TextDate/index.tsx +4 -4
- package/src/components/AnniversaryItem/components/AnniversaryDate/index.tsx +6 -18
- package/src/components/AnniversaryItem/components/ClassicItem/index.tsx +5 -37
- package/src/components/AnniversaryItem/index.tsx +3 -4
- package/src/components/FontLoader/index.tsx +3 -4
- package/src/components/Render/index.tsx +6 -13
|
@@ -0,0 +1,108 @@
|
|
|
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'"
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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
|
+
### [1.4.1](https://github.com/Vixonic/store-aniversarios/compare/v1.4.1-dev.4...v1.4.1) (2026-02-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* VXD-848 adjust font sizes for date components and image size in ClassicItem ([4e98a38](https://github.com/Vixonic/store-aniversarios/commit/4e98a380d7bfd5aa94ed2d2759f6d5349f0c3608))
|
|
11
|
+
|
|
12
|
+
### [1.4.1-dev.4](https://github.com/Vixonic/store-aniversarios/compare/v1.4.1-dev.3...v1.4.1-dev.4) (2026-02-09)
|
|
13
|
+
|
|
5
14
|
### [1.4.1-dev.3](https://github.com/Vixonic/store-aniversarios/compare/v1.4.1-dev.2...v1.4.1-dev.3) (2026-02-09)
|
|
6
15
|
|
|
7
16
|
### [1.4.1-dev.2](https://github.com/Vixonic/store-aniversarios/compare/v1.4.1-dev.1...v1.4.1-dev.2) (2026-02-09)
|