Skip to content

Merge pull request #1 from Onlineberatung/develop #1

Merge pull request #1 from Onlineberatung/develop

Merge pull request #1 from Onlineberatung/develop #1

Workflow file for this run

name: Release action
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