github-actions-release

Github Actions For Release

it's renamed to github-actions-workman
Last updated a year ago by thonatos .
MIT · Original npm · Tarball · package.json
$ cnpm install github-actions-release 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.8                                ...           latest (a year ago)

5 Versions

  • 1.0.8 [deprecated]           ...           a year ago
  • 1.0.7 [deprecated]           ...           a year ago
  • 1.0.6 [deprecated]           ...           a year ago
  • 1.0.5 [deprecated]           ...           a year ago
  • 1.0.3 [deprecated]           ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |