Skip to content

Suggested changes for CI and release automation#463

Merged
colincasey merged 3 commits into
wjh/streamline-releasefrom
wjh/streamline-release-changes
Dec 9, 2024
Merged

Suggested changes for CI and release automation#463
colincasey merged 3 commits into
wjh/streamline-releasefrom
wjh/streamline-release-changes

Conversation

@colincasey

@colincasey colincasey commented Oct 4, 2024

Copy link
Copy Markdown
Contributor

Splits the npm scripts into primary development tasks and lifecycle scripts:

  • build
  • lint: Checks for any lint errors
  • prepack: Lifecycle script to guarantee compiled files are up-to-date before publishing
  • prepare-pr: Runs tests & rebuilds all generated files which is useful to do before opening a PR so no CI validations fail
  • test
  • version: Lifecycle script to guarantee all files affected by a version bump are regenerated and added to git

All other scripts are prefixed with _ to distinguish between the high-level development tasks above and smaller tasks that can be used as building blocks.

Also included in this PR:

  • extracted the inline script that would check if any generated files had not been committed to validate-generated-files.sh

Splits the npm scripts into primary development tasks and lifecycle scripts:
- `build`
- `precommit`: Rebuilds all generated files
- `prepack`: Lifecycle script to guarantee compiled files are up-to-date before publishing
- `test`
- `version`: Lifecycle script to guarantee all files affected by a version bump are regenerated and added to git

All other scripts are prefixed with `_` to distinguish between the high-level development tasks above and smaller tasks that can be used as building blocks.

Also included in this PR:
- extracted the inline script that would check if any generated files had not been committed to `validate-generated-files.sh`
Splits the npm scripts into primary development tasks and lifecycle scripts:
- `build`
- `precommit`: Rebuilds all generated files
- `prepack`: Lifecycle script to guarantee compiled files are up-to-date before publishing
- `test`
- `version`: Lifecycle script to guarantee all files affected by a version bump are regenerated and added to git

All other scripts are prefixed with `_` to distinguish between the high-level development tasks above and smaller tasks that can be used as building blocks.

Also included in this PR:
- extracted the inline script that would check if any generated files had not been committed to `validate-generated-files.sh`
Comment thread package.json Outdated
Comment thread package.json
Comment thread package.json
Comment thread .github/workflows/publish.yaml
Comment thread package.json
@colincasey colincasey requested a review from wjhsf October 8, 2024 14:36
Splits the npm scripts into primary development tasks and lifecycle scripts:
- `build`
- `precommit`: Rebuilds all generated files
- `prepack`: Lifecycle script to guarantee compiled files are up-to-date before publishing
- `test`
- `version`: Lifecycle script to guarantee all files affected by a version bump are regenerated and added to git

All other scripts are prefixed with `_` to distinguish between the high-level development tasks above and smaller tasks that can be used as building blocks.

Also included in this PR:
- extracted the inline script that would check if any generated files had not been committed to `validate-generated-files.sh`
@colincasey

Copy link
Copy Markdown
Contributor Author

@wjhsf @awaterma I've setup a granular automation token in npm to be here used as well.

@colincasey colincasey merged commit 4b290e6 into wjh/streamline-release Dec 9, 2024
@colincasey colincasey deleted the wjh/streamline-release-changes branch December 9, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants