Skip to content

.github/workflows/release.yaml #19

.github/workflows/release.yaml

.github/workflows/release.yaml #19

Workflow file for this run

on:
workflow_dispatch:
inputs:
version:
description: Version number
required: true
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: yarn
- name: Bump version
run: node .github/scripts/bumpv.js ${{ github.event.inputs.version }}
- name: Commit and push changes
uses: actions-js/push@master
with:
branch: master
github_token: ${{ secrets.GITHUB_TOKEN }}
message: Bump version to ${{ github.event.inputs.version }}
- name: Build package
run: yarn build
- name: Create release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ github.event.inputs.version }}"
prerelease: false
title: ${{github.event.inputs.version}}
files: |
dist/index.js