ワークフローテンプレートについて
GitHub offers workflow templates for a variety of languages and tooling. When you set up workflows in your repository, GitHub analyzes the code in your repository and recommends workflows based on the language and framework in your repository. たとえば、Node.js を使用する場合、GitHub は、Node.js パッケージをインストールしてテストを実行するテンプレートファイルを提案します。
You can also create your own workflow templates to share with your organization. For more information, see "Creating workflow templates."
Using workflow templates
Anyone with write permission to a repository can set up GitHub Actions workflows for CI/CD or other automation.
- GitHubで、リポジトリのメインページにアクセスしてください。
- リポジトリ名の下でActions(アクション)をクリックしてください。

- If you already have a workflow in your repository, click New workflow.
- Find the template that you want to use, then click Set up this workflow.
- If the workflow template contains comments detailing additional setup steps, follow these steps.
- Some workflow templates use secrets. For example,
${{ secrets.npm_token }}. If the workflow template uses a secret, store the value described in the secret name as a secret in your repository. For more information, see "Encrypted secrets." - Optionally, make additional changes. For example, you might want to change the value of
onto change when the workflow runs. - [Start commit] をクリックします。
- Write a commit message and decide whether to commit directly to the default branch or to open a pull request.