1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-25 01:02:19 +00:00
bazarr/.github/workflows/release_beta_to_dev.yaml

54 lines
1.5 KiB
YAML
Raw Normal View History

name: release_beta_to_dev
on:
push:
2021-03-25 14:22:43 +00:00
branches: [development]
jobs:
Release:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2021-03-25 14:22:43 +00:00
working-directory: ./frontend
steps:
- name: Checkout source code
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: development
- name: Setup NodeJS
uses: actions/setup-node@v2
with:
2021-03-25 14:22:43 +00:00
node-version: "15.x"
- run: npm install -D release-it
- run: npm install -D @release-it/bumper
2021-03-25 14:22:43 +00:00
2021-03-25 14:46:25 +00:00
#- name: Install dependencies
# run: npm install
# working-directory: ${{ env.working-directory }}
#- name: Remove previous build directory
# uses: JesseTG/rm@v1.0.2
# with:
# path: ${{ env.working-directory }}/build
#- name: Build
# run: npm run build
# working-directory: ${{ env.working-directory }}
2021-03-25 14:22:43 +00:00
- id: latest_release
uses: pozetroninc/github-action-get-latest-release@master
with:
repository: ${{ github.repository }}
excludes: draft
- name: Define LAST_VERSION environment variable
run: |
2021-03-25 14:22:43 +00:00
echo "LAST_VERSION=${{steps.latest_release.outputs.release}}" >> $GITHUB_ENV
- name: Update version and create release
uses: TheRealWaldo/release-it@v0.2.1
with:
2021-03-25 14:22:43 +00:00
json-opts: '{"preRelease": true, "increment": "prepatch", "preReleaseId": "beta"}'