feat(ci): add publish_test & rename install_deps to build job
Hotfix: Ensure dist folder inclusion in npm package and improve CI pipeline
This MR addresses the issue where the dist folder was missing in the previously published npm package (v0.1.2). The following changes have been made:
- Modified
.gitlab-ci.yml:- Added caching for the
dist/directory. - Rename
install_dependenciesjob tobuild. - Added a new
.publish_scriptto standardize publishing preparation steps across jobs. - Added a new
publish_testjob to check for version changes and verify the existence of thedistdirectory before performing a dry run of the publication process.
- Added caching for the
- Updated
jest.config.cjsto includetestPathIgnorePatternsfor/dist/and/node_modules/directories, ensuring these are not processed during testing.
Edited by Eugene E.