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_dependencies
job tobuild
. - Added a new
.publish_script
to standardize publishing preparation steps across jobs. - Added a new
publish_test
job to check for version changes and verify the existence of thedist
directory before performing a dry run of the publication process.
- Added caching for the
- Updated
jest.config.cjs
to includetestPathIgnorePatterns
for/dist/
and/node_modules/
directories, ensuring these are not processed during testing.
Edited by E. Evstafiev