Skip to content

Commit 73b855a

Browse files
Merge pull request #12 from technote-space/release/v1.0.0
release/v1.0.0
2 parents 23ed1f6 + 5a97cdc commit 73b855a

File tree

3 files changed

+60
-5
lines changed

3 files changed

+60
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
2828
COVERALLS_SERVICE_NAME: "GitHub Action"
2929
COVERALLS_SERVICE_JOB_ID: ${{ github.sha }}
30+
COVERALLS_GIT_COMMIT: ${{ github.sha }}
31+
COVERALLS_GIT_BRANCH: ${{ github.ref }}
3032
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/master'
3133
- uses: 8398a7/action-slack@v1
3234
with:

.github/workflows/released.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
on: release
2-
name: Released
2+
name: Release
33
jobs:
44
release:
55
name: Release GitHub Actions
66
runs-on: ubuntu-latest
77
steps:
88
- name: Release GitHub Actions
9-
uses: technote-space/release-github-actions@pre
9+
uses: technote-space/release-github-actions@test
1010
with:
1111
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
1212
COMMIT_NAME: Technote

README.md

Lines changed: 56 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,61 @@
55
[![CodeFactor](https://www.codefactor.io/repository/github/technote-space/release-github-actions/badge)](https://www.codefactor.io/repository/github/technote-space/release-github-actions)
66
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/release-github-actions/blob/master/LICENSE)
77

8-
GitHub actions to auto release.
9-
10-
## Screenshot
8+
GitHub actions to auto release.
9+
Once you publish the release, this action will run build and create branch automatically.
1110

1211
## Installation
12+
.github/workflows/release.yml
13+
```yaml
14+
on: release
15+
name: Release
16+
jobs:
17+
release:
18+
name: Release GitHub Actions
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Release GitHub Actions
22+
uses: technote-space/[email protected]
23+
with:
24+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
25+
```
26+
27+
## ACCESS_TOKEN
28+
1. Generate a [personal access token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) with the public_repo or repo scope.
29+
(repo is required for private repositories).
30+
1. [Save as secrets](https://help.github.com/en/articles/virtual-environments-for-github-actions#creating-and-using-secrets-encrypted-variables)
31+
32+
## Details
33+
### Target event
34+
- release
35+
### Target action
36+
- published
37+
### Branch name
38+
- Tag name
39+
40+
## Options
41+
### BUILD_COMMAND
42+
Build command.
43+
default: `''`
44+
- If package.json includes build or production or prod in scripts, the command is used for build.
45+
- If command does not have install command like `npm run install` or `yarn install`, install commands are added.
46+
47+
so if `BUILD_COMMAND` is not provided and package.json has `build` script,
48+
the following commands are executed.
49+
```shell
50+
yarn install
51+
yarn build
52+
yarn install --production
53+
```
54+
55+
### COMMIT_MESSAGE
56+
Commit message.
57+
default: `'feat: Build for release'`
58+
59+
### COMMIT_NAME
60+
Commit name.
61+
default: `'GitHub Actions'`
62+
63+
### COMMIT_EMAIL
64+
Commit email.
65+
default: `'[email protected]'`

0 commit comments

Comments
 (0)