Create GH Action to Publish Project Automatically #1274
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR is to automation to publish the project from the cloud environment automatically.
Other enhancements such as publish step extraction will be recommended with future issues/PRs.
Important (Admin Steps)
The following steps are required by a repo and NPM admin to complete this PRs integration:
NPM
.typescript-json
andtypia
packages (a long-lived token would reduce the need to cycle it constantly) with read and write permissions.NPM_PUBLISH
.Security Best Practices
master
branch for any (*
) tag. This prevents forks/branches from running the deploy command and only approved code can even attempt to request access.typescript-json
andtypia
, don't grant it any additional permissions.