@yuler/actions

0.2.0 • Public • Published

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:

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @yuler/actions

      Weekly Downloads

      0

      Version

      0.2.0

      License

      MIT

      Unpacked Size

      5.61 kB

      Total Files

      8

      Last publish

      Collaborators

      • yuler