@yuler/actions

v0.1.0
This package is collection some GitHub Actions
actions github-action

GitHub Actions

This repo is collection some GitHub Actions.

About GitHub Action Refs

gh download

The gh download command is come from gh-download

Node.js CI

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

GitHub Release

Recommend use release-drafter action.

gh download yuler/actions .github/release-drafter.yml .github/workflows/drafter.yml

Note Must first have the configuration file in the default branch

refs:

NPM Publish

# Add NPM_TOKEN secret from `~/.npmrc`
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:

PR Commented Trigger

gh donwload yuler/actions .github/workflows/pr-commented.yml

refs:

npm i @yuler/[email protected]

Metadata

  • MIT
  • Whatever
  • yuler
  • released 9/6/2021

Downloads

Maintainers