This package is collection some GitHub Actions. No export of anything.
npm install @yuler/actions> This repo is collection some GitHub Actions.
- Official Document
- Awesome Actions
- Act - Run your GitHub Actions locally
- TypeScript Action - A TypeScript Action Template
The gh download command is come from gh-download
``bash`
gh download yuler/actions .github/workflows/nodejs-ci.yml
refs:
https://docs.github.com/en/actions/guides/building-and-testing-nodejs-or-python?langId=nodejs
> Recommend use release-drafter action.
`bash`
gh download yuler/actions .github/release-drafter.yml .github/workflows/drafter.yml
Note Must first have the configuration file in the default branch
refs:
- https://github.com/release-drafter/release-drafter
- https://github.com/actions/create-release
- https://github.com/semantic-release/cli#github-actions
- https://github.com/yyx990803/release-tag
`bash~/.npmrcAdd NPM_TOKEN secret from
`
gh secret set NPM_TOKEN -b"$(cat ~/.npmrc | grep _authToken | sed 's/\/\/registry.npmjs.org\/:_authToken=//')"Or add alias
gh alias set secret_add_npm_token "secret set NPM_TOKEN -b"$(cat ~/.npmrc | grep _authToken | sed 's/\/\/registry.npmjs.org\/:_authToken=//')""Download file
gh download yuler/actions .github/workflows/npm-publish.yml
refs:
- https://docs.github.com/en/actions/guides/publishing-nodejs-packages
```
gh donwload yuler/actions .github/workflows/pr-commented.yml
refs:
- https://github.com/Khan/pull-request-comment-trigger