add check in NPM packaging pipeline for @dev package version (#24641)
### Description
This PR adds a check for the package version for dev channel.
This PR should be able to help avoid publishing packages like "-rc.*" to
dev channel automatically.
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->