bcgov / design-system

The B.C. Design System helps public sector design and development teams build consistent, accessible products
https://gov.bc.ca/designsystem
Apache License 2.0
56 stars 38 forks source link

Update design tokens package scripts for CI #459

Closed ty2k closed 1 month ago

ty2k commented 1 month ago

This PR updates the scripts in the packages/design-tokens/package.json file to make the scripts work better with our GitHub Actions CI environment.

The scripts work the same with the exception of the prepare-npm-package script, which now includes an additional step to copy the latest package.json version field into the dist/package.json file that gets distributed on npm. This requires jq to be installed on a developer's machine when running locally, but our GitHub Actions workflow file to publish new design token packages already includes a step to install jq.