Skip to content

Commit 1b76ee4

Browse files
authored
chore: release v1.0.0-alpha.1 (#7)
* ci: add CI workflow with type check, build, verify and dry-run publish Runs on every push and PR across all branches. Checks: - TypeScript (server + admin) - Build - Strapi plugin verify - Version not already published on npm - Dry run publish publish.yml now requires CI to pass before publishing to npm. * fix: replace yarn run -T with npx tsc and fix implicit any type errors - Fix test:ts:front and test:ts:back scripts to use npx tsc (was yarn-only syntax) - Add explicit types for implicit any parameters caught by the type check: MouseEvent on DropZone drag handle click boolean on Modal.Root onOpenChange in EmbedModal and FormPreview string | number on SingleSelect onChange in FieldSettingsPanel and SubmissionsPage * ci: add Dependabot for npm and GitHub Actions weekly updates * fix: remove stale compiled JS files from src and ignore them in .gitignore Rollup was resolving register.js (and other compiled .js files) instead of the .ts sources, causing 'default is not exported' build failures in CI. Deleted all .js artifacts from server/src and admin/src and added them to .gitignore so they are never committed again. * fix: add --noEmit to tsc type-check scripts to prevent JS file generation Without --noEmit, tsc outputs .js files next to the .ts sources. Rollup then resolves the CJS .js files instead of the .ts sources and fails with 'default is not exported' on the CommonJS interop boundary. * ci: prevent double CI run on PR branches Push trigger now only fires on main, development and production. Feature branches are covered by the pull_request trigger alone, so CI no longer runs twice when pushing to an open PR. * chore: bump version to 1.0.0 and complete package.json metadata - Version 1.0.0 (initial public release) - Add description, keywords, repository, bugs and homepage fields - Set strapi.displayName to 'Form Builder CMS' * chore: set version to 1.0.0-alpha.1 and auto-tag alpha/beta/rc on publish
1 parent 05efb2b commit 1b76ee4

2 files changed

Lines changed: 39 additions & 10 deletions

File tree

.github/workflows/publish.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,22 @@ jobs:
3232
id: pkg
3333
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
3434

35+
- name: Set npm tag
36+
id: tag
37+
run: |
38+
VERSION=$(node -p "require('./package.json').version")
39+
if [[ "$VERSION" == *"alpha"* ]]; then
40+
echo "tag=alpha" >> $GITHUB_OUTPUT
41+
elif [[ "$VERSION" == *"beta"* ]]; then
42+
echo "tag=beta" >> $GITHUB_OUTPUT
43+
elif [[ "$VERSION" == *"rc"* ]]; then
44+
echo "tag=rc" >> $GITHUB_OUTPUT
45+
else
46+
echo "tag=latest" >> $GITHUB_OUTPUT
47+
fi
48+
3549
- name: Publish to npm
36-
run: npm publish --access public
50+
run: npm publish --access public --tag ${{ steps.tag.outputs.tag }}
3751
env:
3852
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3953

package.json

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
{
2-
"version": "0.0.0",
3-
"keywords": [],
2+
"name": "strapi-plugin-form-builder-cms",
3+
"version": "1.0.0-alpha.1",
4+
"description": "Visual drag-and-drop form builder plugin for Strapi 5. Create, publish and embed forms on any website.",
5+
"keywords": [
6+
"strapi",
7+
"strapi-plugin",
8+
"form-builder",
9+
"forms",
10+
"drag-and-drop",
11+
"cms"
12+
],
13+
"license": "MIT",
14+
"author": "dev.cluna <dev.cluna@gmail.com>",
15+
"repository": {
16+
"type": "git",
17+
"url": "git+https://github.com/devCluna/strapi-plugin-form-builder-cms.git"
18+
},
19+
"bugs": {
20+
"url": "https://github.com/devCluna/strapi-plugin-form-builder-cms/issues"
21+
},
22+
"homepage": "https://github.com/devCluna/strapi-plugin-form-builder-cms#readme",
423
"type": "commonjs",
524
"exports": {
625
"./package.json": "./package.json",
@@ -67,11 +86,7 @@
6786
"strapi": {
6887
"kind": "plugin",
6988
"name": "strapi-plugin-form-builder-cms",
70-
"displayName": "",
71-
"description": ""
72-
},
73-
"name": "strapi-plugin-form-builder-cms",
74-
"description": "",
75-
"license": "MIT",
76-
"author": "dev.cluna <dev.cluna@gmail.com>"
89+
"displayName": "Form Builder CMS",
90+
"description": "Visual drag-and-drop form builder plugin for Strapi 5"
91+
}
7792
}

0 commit comments

Comments
 (0)