Skip to content

Commit 6358f0d

Browse files
committed
Add github action to automate releases
1 parent aa5333d commit 6358f0d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Create release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
increment:
7+
description: "Select increment (next version)"
8+
required: true
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
- name: git config
18+
run: |
19+
git config user.name "${GITHUB_ACTOR}"
20+
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
21+
- run: npm ci
22+
- run: npm run release -- ${{ github.event.inputs.increment }} --ci
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)