0.2.0 • Published 3 years ago

@yuler/actions v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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: