Create reusable workflow for continuous deployment of SOLIDS to dev and prod build repos using versioning.
Workflow Files
solid-build.yml
Dependent Actions
Push Action:
cpina/github-action-push-to-another-repository
This action has a target-directory option that be used to replace a specific directory rather than the entire code base under the branch. This will be used to target the version number ie. 16.0.0-alpha.6
Build
Dev
npm run build:plugin:dev:16.0.0-alpha.6
Prod
npm run build:plugin:prod:16.0.0-alpha.6
Where 16.0.0-alpha.6 is extracted from package.json file using jq
Summary
Create reusable workflow for continuous deployment of SOLIDS to dev and prod build repos using versioning.
Workflow Files
Dependent Actions
Push Action:
This action has a target-directory option that be used to replace a specific directory rather than the entire code base under the branch. This will be used to target the version number ie. 16.0.0-alpha.6
Build
Dev
Prod
Where 16.0.0-alpha.6 is extracted from package.json file using jq
Push
Secrets
Org Secrets:
Environment Secrets:
Repository Secrets:
NOTE: Look into using variables for things that don't need to be encrypted like branch name, repo, user, etc.
Important
Deal with CRITICAL deprecation.
The
set-output
command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/