forked from Onlineberatung/onlineBeratung-videoService
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 850 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Release action
release:
on:
push:
branches:
- 'release'
jobs:
build:
name: Release
if: "!contains(github.event.head_commit.author, '[email protected]')"
runs-on: ubuntu-latest
steps:
- name: set env
run: echo BRANCH=$(echo -n "${GITHUB_REF#refs/heads/}") >> $GITHUB_ENV
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10
- run: npm i
- name: Bump version
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
npm run release
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{env.BRANCH}}
force: true
tags: true