0.1.0 • Published 1 year ago
publish-workflow-test-gl v0.1.0
Example Repo for NPM Publish Workflow
Set Up
- Create GitHub personal access token (classic) + NPM publish token
- Add these to repository secrets named as
GHP_TOKEN
andNPM_PUBLISH_ACCESS_TOKEN
- In GitHub repository settings, go to: actions -> general -> workflow permissions -> Enable Read & Write Permissions
- (Optionally) Add Changesets GitHub Bot to the repo
Useful Links
YAML Syntax for GitHub Actions: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
Changesets:
- FAQ: https://github.com/changesets/changesets/blob/main/docs/common-questions.md
- GitHub Actions: https://github.com/changesets/action
- Configuring: https://github.com/changesets/changesets/blob/main/docs/config-file-options.md#basebranch-git-branch-name
- Likely you'll want to modify and ensure correct
access
andbaseBranch
values
- Likely you'll want to modify and ensure correct
GitHub Actions:
- Manually running a workflow: https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
- Re-running a workflow: https://docs.github.com/en/actions/managing-workflow-runs/re-running-workflows-and-jobs
- Disabling or enabling a workflow: https://docs.github.com/en/actions/managing-workflow-runs/disabling-and-enabling-a-workflow
Slack:
- GitHub Action: https://github.com/slackapi/slack-github-action