@vixoniccom/birthdays 0.7.7-dev.3 → 0.7.7
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 +12 -56
- package/CHANGELOG.md +12 -0
- package/build.zip +0 -0
- package/package.json +1 -1
- package/.github/workflows/npm-publish.yml +0 -94
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
name: Publish to NPM
|
|
1
|
+
name: Publish to NPM on Release
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
workflow_dispatch:
|
|
5
|
-
|
|
5
|
+
pull_request:
|
|
6
6
|
branches:
|
|
7
|
-
-
|
|
8
|
-
- main
|
|
7
|
+
- development
|
|
9
8
|
|
|
10
9
|
jobs:
|
|
11
10
|
publish:
|
|
@@ -50,29 +49,6 @@ jobs:
|
|
|
50
49
|
env:
|
|
51
50
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
52
51
|
|
|
53
|
-
- name: Check if version is pre-release
|
|
54
|
-
id: check-prerelease
|
|
55
|
-
run: |
|
|
56
|
-
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
57
|
-
echo "Current version: $PACKAGE_VERSION"
|
|
58
|
-
|
|
59
|
-
if [[ "$PACKAGE_VERSION" =~ -(dev|beta|alpha|rc|canary|next|preview|snapshot|nightly)\.[0-9]+ ]]; then
|
|
60
|
-
echo "is-prerelease=true" >> $GITHUB_OUTPUT
|
|
61
|
-
echo "✅ Version $PACKAGE_VERSION is a pre-release - will run npm run release"
|
|
62
|
-
else
|
|
63
|
-
echo "is-prerelease=false" >> $GITHUB_OUTPUT
|
|
64
|
-
echo "✅ Version $PACKAGE_VERSION is already a production version - skipping npm run release"
|
|
65
|
-
fi
|
|
66
|
-
|
|
67
|
-
- name: Bump version to production (only if pre-release)
|
|
68
|
-
if: steps.check-prerelease.outputs.is-prerelease == 'true'
|
|
69
|
-
run: |
|
|
70
|
-
echo "🔄 Converting pre-release to production version..."
|
|
71
|
-
npm run release
|
|
72
|
-
git push --follow-tags origin ${{ github.ref_name }}
|
|
73
|
-
env:
|
|
74
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
75
|
-
|
|
76
52
|
- name: Build package
|
|
77
53
|
run: npm run prepublish
|
|
78
54
|
env:
|
|
@@ -87,40 +63,20 @@ jobs:
|
|
|
87
63
|
echo "✅ build.zip found successfully"
|
|
88
64
|
ls -la build.zip
|
|
89
65
|
|
|
90
|
-
- name:
|
|
91
|
-
id: check-version
|
|
66
|
+
- name: Bump version and create release
|
|
92
67
|
run: |
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
echo "Checking if $PACKAGE_NAME@$PACKAGE_VERSION exists on npm..."
|
|
97
|
-
|
|
98
|
-
if npm view "$PACKAGE_NAME@$PACKAGE_VERSION" version 2>/dev/null; then
|
|
99
|
-
echo "version-exists=true" >> $GITHUB_OUTPUT
|
|
100
|
-
echo "⚠️ Version $PACKAGE_VERSION already exists on npm"
|
|
101
|
-
else
|
|
102
|
-
echo "version-exists=false" >> $GITHUB_OUTPUT
|
|
103
|
-
echo "✅ Version $PACKAGE_VERSION does not exist on npm - ready to publish"
|
|
104
|
-
fi
|
|
105
|
-
|
|
106
|
-
- name: Publish to npm
|
|
107
|
-
if: steps.check-version.outputs.version-exists == 'false'
|
|
108
|
-
run: |
|
|
109
|
-
echo "Publishing to npm..."
|
|
110
|
-
npm publish --access public
|
|
68
|
+
echo "🔄 Running release..."
|
|
69
|
+
npm run release
|
|
70
|
+
git push --follow-tags origin ${{ github.ref_name }}
|
|
111
71
|
env:
|
|
112
72
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
113
73
|
|
|
114
|
-
- name:
|
|
115
|
-
if: steps.check-version.outputs.version-exists == 'false'
|
|
74
|
+
- name: Publish to npm
|
|
116
75
|
run: |
|
|
117
76
|
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
118
77
|
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
78
|
+
echo "📦 Publishing $PACKAGE_NAME@$PACKAGE_VERSION to npm..."
|
|
79
|
+
npm publish --access public
|
|
119
80
|
echo "🎉 Successfully published $PACKAGE_NAME@$PACKAGE_VERSION to npm!"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
- name: Skip publication - version exists
|
|
123
|
-
if: steps.check-version.outputs.version-exists == 'true'
|
|
124
|
-
run: |
|
|
125
|
-
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
126
|
-
echo "⏭️ Skipping publication - version $PACKAGE_VERSION already exists on npm"
|
|
81
|
+
env:
|
|
82
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
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](https://github.com/Vixonic/store-birthdays/compare/v0.7.7-dev.3...v0.7.7) (2026-01-16)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* deleted npm-publish pipeline ([4b5ebc8](https://github.com/Vixonic/store-birthdays/commit/4b5ebc84d3ac63511cba9d9803a40447061d4318))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* deploy prod version ([eda76a7](https://github.com/Vixonic/store-birthdays/commit/eda76a720a7ad1e4b4ec6797b7d409ecb0a9f0bb))
|
|
16
|
+
|
|
5
17
|
### [0.7.7-dev.3](https://github.com/Vixonic/store-birthdays/compare/v0.7.7-dev.2...v0.7.7-dev.3) (2026-01-16)
|
|
6
18
|
|
|
7
19
|
### [0.7.7-dev.2](https://github.com/Vixonic/store-birthdays/compare/v0.7.7-dev.1...v0.7.7-dev.2) (2026-01-16)
|
package/build.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
name: Publish to NPM
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
7
|
-
- main
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
publish:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
|
|
13
|
-
steps:
|
|
14
|
-
- name: Checkout code
|
|
15
|
-
uses: actions/checkout@v4
|
|
16
|
-
with:
|
|
17
|
-
fetch-depth: 0
|
|
18
|
-
|
|
19
|
-
- name: Setup Node.js 20
|
|
20
|
-
uses: actions/setup-node@v4
|
|
21
|
-
with:
|
|
22
|
-
node-version: '20'
|
|
23
|
-
registry-url: 'https://registry.npmjs.org'
|
|
24
|
-
scope: '@vixoniccom'
|
|
25
|
-
|
|
26
|
-
- name: Configure npm authentication
|
|
27
|
-
run: |
|
|
28
|
-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
|
29
|
-
echo "@vixoniccom:registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
30
|
-
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
31
|
-
|
|
32
|
-
- name: Cache node modules
|
|
33
|
-
uses: actions/cache@v3
|
|
34
|
-
with:
|
|
35
|
-
path: ~/.npm
|
|
36
|
-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
37
|
-
restore-keys: |
|
|
38
|
-
${{ runner.os }}-node-
|
|
39
|
-
|
|
40
|
-
- name: Install dependencies
|
|
41
|
-
run: npm ci
|
|
42
|
-
env:
|
|
43
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
44
|
-
|
|
45
|
-
- name: Build package
|
|
46
|
-
run: npm run prepublish
|
|
47
|
-
|
|
48
|
-
- name: Verify build.zip exists
|
|
49
|
-
run: |
|
|
50
|
-
if [ ! -f "build.zip" ]; then
|
|
51
|
-
echo "❌ Error: build.zip not found after build process"
|
|
52
|
-
exit 1
|
|
53
|
-
fi
|
|
54
|
-
echo "✅ build.zip found successfully"
|
|
55
|
-
ls -la build.zip
|
|
56
|
-
|
|
57
|
-
- name: Check if version already exists on npm
|
|
58
|
-
id: check-version
|
|
59
|
-
run: |
|
|
60
|
-
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
61
|
-
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
62
|
-
|
|
63
|
-
echo "Checking if $PACKAGE_NAME@$PACKAGE_VERSION exists on npm..."
|
|
64
|
-
|
|
65
|
-
if npm view "$PACKAGE_NAME@$PACKAGE_VERSION" version 2>/dev/null; then
|
|
66
|
-
echo "version-exists=true" >> $GITHUB_OUTPUT
|
|
67
|
-
echo "⚠️ Version $PACKAGE_VERSION already exists on npm"
|
|
68
|
-
else
|
|
69
|
-
echo "version-exists=false" >> $GITHUB_OUTPUT
|
|
70
|
-
echo "✅ Version $PACKAGE_VERSION does not exist on npm - ready to publish"
|
|
71
|
-
fi
|
|
72
|
-
|
|
73
|
-
- name: Publish to npm
|
|
74
|
-
if: steps.check-version.outputs.version-exists == 'false'
|
|
75
|
-
run: |
|
|
76
|
-
echo "Publishing to npm..."
|
|
77
|
-
npm publish --access public
|
|
78
|
-
env:
|
|
79
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
80
|
-
|
|
81
|
-
- name: Publication success
|
|
82
|
-
if: steps.check-version.outputs.version-exists == 'false'
|
|
83
|
-
run: |
|
|
84
|
-
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
85
|
-
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
86
|
-
echo "🎉 Successfully published $PACKAGE_NAME@$PACKAGE_VERSION to npm!"
|
|
87
|
-
echo "📦 Package includes build.zip with the compiled application"
|
|
88
|
-
|
|
89
|
-
- name: Skip publication
|
|
90
|
-
if: steps.check-version.outputs.version-exists == 'true'
|
|
91
|
-
run: |
|
|
92
|
-
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
93
|
-
echo "⏭️ Skipping publication - version $PACKAGE_VERSION already exists on npm"
|
|
94
|
-
echo "💡 To publish a new version, update the version in package.json or run 'npm run release'"
|