summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-02-06 02:22:48 +0300
committerValentin Popov <valentin@popov.link>2026-02-06 02:22:48 +0300
commit0be90df662ee6a4bcd426705e842711c21d91317 (patch)
tree563e09abca2e64c459ad6d2ffc484a1240069505
parentc20175cffbf0b567fd0fe1e344f4b928ed44b1ae (diff)
downloadstrapi-plugin-checkbox-list-0be90df662ee6a4bcd426705e842711c21d91317.tar.xz
strapi-plugin-checkbox-list-0be90df662ee6a4bcd426705e842711c21d91317.zip
Update package.json and GitHub Actions workflow for version consistency
- Changed the repository URL in package.json from SSH to HTTPS for better accessibility. - Updated the homepage URL in package.json to remove the #readme fragment. - Added a step in the GitHub Actions workflow to ensure that the tag matches the package version before publishing, enhancing version control integrity.
-rw-r--r--.github/workflows/publish.yml16
-rw-r--r--package.json4
2 files changed, 18 insertions, 2 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index fa7cf26..a6d3fa4 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -24,6 +24,14 @@ jobs:
cache-dependency-path: |
package-lock.json
playground/package-lock.json
+ - name: Check tag matches package version
+ run: |
+ VERSION=$(node -p "require('./package.json').version")
+ TAG="${GITHUB_REF_NAME}"
+ if [ "v${VERSION}" != "${TAG}" ]; then
+ echo "Tag ${TAG} does not match package.json version v${VERSION}"
+ exit 1
+ fi
- name: Write playground .env
run: |
printf '%s' "${{ secrets.PLAYGROUND_ENV_BASE64 }}" | base64 -d > playground/.env
@@ -62,6 +70,14 @@ jobs:
registry-url: https://registry.npmjs.org/
cache: "npm"
cache-dependency-path: package-lock.json
+ - name: Check tag matches package version
+ run: |
+ VERSION=$(node -p "require('./package.json').version")
+ TAG="${GITHUB_REF_NAME}"
+ if [ "v${VERSION}" != "${TAG}" ]; then
+ echo "Tag ${TAG} does not match package.json version v${VERSION}"
+ exit 1
+ fi
- name: Install deps
run: npm ci
- name: Build plugin
diff --git a/package.json b/package.json
index fd816cf..ec39aef 100644
--- a/package.json
+++ b/package.json
@@ -69,11 +69,11 @@
"license": "MIT",
"repository": {
"type": "git",
- "url": "git+ssh://git@code.popov.link/valentineus/strapi-plugin-checkbox-list.git"
+ "url": "https://code.popov.link/valentineus/strapi-plugin-checkbox-list.git"
},
"bugs": {
"url": "https://code.popov.link/valentineus/strapi-plugin-checkbox-list/issues"
},
- "homepage": "https://code.popov.link/valentineus/strapi-plugin-checkbox-list#readme",
+ "homepage": "https://code.popov.link/valentineus/strapi-plugin-checkbox-list",
"author": "Valentin Popov <valentin@popov.link>"
}