@vaneui/ui 0.0.2 → 0.0.3
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 +46 -11
- package/README.md +4 -1
- package/package.json +3 -3
|
@@ -9,22 +9,57 @@ jobs:
|
|
|
9
9
|
build:
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
11
|
steps:
|
|
12
|
-
-
|
|
13
|
-
|
|
12
|
+
- name: Checkout Code
|
|
13
|
+
uses: actions/checkout@v4
|
|
14
|
+
|
|
15
|
+
- name: Setup Node.js
|
|
16
|
+
uses: actions/setup-node@v3
|
|
14
17
|
with:
|
|
15
|
-
node-version: 20
|
|
16
|
-
|
|
18
|
+
node-version: '20'
|
|
19
|
+
registry-url: 'https://registry.npmjs.org'
|
|
20
|
+
cache: 'npm'
|
|
21
|
+
|
|
22
|
+
- name: Install Dependencies
|
|
23
|
+
run: npm ci
|
|
24
|
+
|
|
25
|
+
- name: Build Package
|
|
26
|
+
run: npm run build
|
|
17
27
|
|
|
18
28
|
publish-npm:
|
|
19
29
|
needs: build
|
|
20
30
|
runs-on: ubuntu-latest
|
|
21
31
|
steps:
|
|
22
|
-
-
|
|
23
|
-
|
|
32
|
+
- name: Checkout Code
|
|
33
|
+
uses: actions/checkout@v4
|
|
34
|
+
|
|
35
|
+
- name: Setup Node.js
|
|
36
|
+
uses: actions/setup-node@v3
|
|
24
37
|
with:
|
|
25
|
-
node-version: 20
|
|
26
|
-
registry-url: https://registry.npmjs.org
|
|
27
|
-
|
|
28
|
-
-
|
|
38
|
+
node-version: '20'
|
|
39
|
+
registry-url: 'https://registry.npmjs.org'
|
|
40
|
+
|
|
41
|
+
- name: Install Dependencies
|
|
42
|
+
run: npm ci
|
|
43
|
+
|
|
44
|
+
- name: Check if Version Already Published
|
|
45
|
+
id: check_version
|
|
46
|
+
run: |
|
|
47
|
+
# Get version from package.json
|
|
48
|
+
VERSION=$(node -p "require('./package.json').version")
|
|
49
|
+
echo "Local package version: $VERSION"
|
|
50
|
+
# Get published version for the package (@vaneui/ui) or "none" if not published.
|
|
51
|
+
PUBLISHED_VERSION=$(npm view @vaneui/ui version || echo "none")
|
|
52
|
+
echo "Published package version: $PUBLISHED_VERSION"
|
|
53
|
+
if [ "$VERSION" = "$PUBLISHED_VERSION" ]; then
|
|
54
|
+
echo "Version already published. Skipping publish step."
|
|
55
|
+
echo "shouldPublish=false" >> $GITHUB_OUTPUT
|
|
56
|
+
else
|
|
57
|
+
echo "Version is new. Proceeding with publish."
|
|
58
|
+
echo "shouldPublish=true" >> $GITHUB_OUTPUT
|
|
59
|
+
fi
|
|
60
|
+
|
|
61
|
+
- name: Publish Package to npm
|
|
62
|
+
if: steps.check_version.outputs.shouldPublish == 'true'
|
|
63
|
+
run: npm publish --access public
|
|
29
64
|
env:
|
|
30
|
-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
65
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaneui/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"author": "",
|
|
52
52
|
"license": "ISC",
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
55
|
-
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
54
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
55
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@rollup/plugin-commonjs": "^28.0.2",
|