1.0.8 โ€ข Published 5 years ago

github-actions-release v1.0.8

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Github Actions Release ยท GitHub license

Egg.js NPM Version

Github actions for the package release.

Features

๐Ÿ˜€๐Ÿค“๐Ÿ˜Ž๐Ÿค—๐Ÿ˜‰๐Ÿ˜‡

Check Release Proposal

Example: 'Release {Semver Version}'

Check Release Version

1.0.0 -> 1.0.1 โœ…
1.0.0 -> 1.0.1 โœ…
2.0.0 -> 1.0.0 โŽ

Search Release Label

Add the label to the Release Pull Request

1.0.0 -> 1.0.1 ๐Ÿ‘‰ semver:patch
1.0.0 -> 1.1.1 ๐Ÿ‘‰ semver:minor
1.0.0 -> 2.2.1 ๐Ÿ‘‰ semver:major

Usage

Enable Github Actions

https://github.com/features/actions

Add SSH Keys / Npm Auth Token to Secrets.

Project - Settings - Secrets

  • NPM_AUTH_TOKEN
  • RELEASE_SSH_ID_RSA
  • RELEASE_SSH_ID_RSA_PUB
  • RELEASE_GIT_USER_NAME
  • RELEASE_GIT_USER_EMAIL

Create Workflow

## actions
action "npm install" {
  uses = "docker://node:lts-slim"
  args = "npm i"
}

action "npm ci" {
  uses = "docker://node:lts-slim"
  needs = ["npm install"]
  args = "npm run ci"
}

action "npm release" {
  uses = "thonatos/github-actions-release@master"
  needs = ["npm ci"]
  args = "actions-release"
  secrets = [
    "GITHUB_TOKEN",
    "NPM_AUTH_TOKEN",
    "RELEASE_SSH_ID_RSA",
    "RELEASE_SSH_ID_RSA_PUB",
    "RELEASE_GIT_USER_NAME",
    "RELEASE_GIT_USER_EMAIL"
  ]
}

## workflow
workflow "Pull Request" {
  on = "pull_request"
  resolves = ["npm install", "npm ci", "npm release"]
}

Handle Pull Request

  • Create the PR
  • Review code
  • Change PR title to Release {Semver Version}
  • Close PR without deleting branch

What will the action do ?

  1. It will a add label like: semver:patch
  2. Create a Release Tag with updated changelog
  3. Release the package with run npm publish --access public

Contributing

Suggestions

Please open an issue here.

License

Github Actions Release is MIT licensed.

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.3

5 years ago