Merge remote-tracking branch 'origin/development' into development

This commit is contained in:
morpheus65535 2021-03-27 08:04:43 -04:00
commit 0651b8fb8b
13 changed files with 79 additions and 6050 deletions

7
.auto-changelog Normal file
View File

@ -0,0 +1,7 @@
{
"template": "./changelog.hbs",
"unreleased": true,
"commitLimit": true,
"ignoreCommitPattern": "^Release.*",
"sortCommits": "date-desc"
}

10
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/frontend'
schedule:
interval: 'weekly'
commit-message:
prefix: "[bot]"
open-pull-requests-limit: 1
target-branch: "development"

View File

@ -2,33 +2,41 @@ name: CI
on:
push:
branches: [frontend-upgrade]
branches: [development]
pull_request:
branches: [frontend-upgrade]
branches: [development]
jobs:
Frontend:
runs-on: ubuntu-latest
env:
working-directory: ./frontend
strategy:
matrix:
node-version: [14.x]
UI_DIRECTORY: ./frontend
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- name: Cache node_modules
uses: actions/cache@v2
with:
node-version: ${{ matrix.node-version }}
path: '${{ env.UI_DIRECTORY }}/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-modules-
- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: "15.x"
- name: Install dependencies
run: npm install
working-directory: ${{ env.working-directory }}
working-directory: ${{ env.UI_DIRECTORY }}
- name: Build
run: npm run build
working-directory: ${{ env.working-directory }}
working-directory: ${{ env.UI_DIRECTORY }}
- uses: actions/upload-artifact@v2
with:
name: "ui"
path: "${{ env.UI_DIRECTORY }}/build"

View File

@ -1,55 +1,47 @@
name: release_beta_to_dev
on:
push:
branches: [development]
on: workflow_dispatch
jobs:
Release:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
working-directory: ./frontend
UI_DIRECTORY: ./frontend
FETCH_DEPTH: 15 # Should be enough
steps:
- name: Checkout source code
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
fetch-depth: ${{ env.FETCH_DEPTH }}
ref: development
- name: Setup Git
run: |
git config --global user.name "github-actions" &&
git fetch --depth ${{ env.FETCH_DEPTH }} --tags
- name: Cache node_modules
uses: actions/cache@v2
with:
path: '${{ env.UI_DIRECTORY }}/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-modules-
- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: "15.x"
- run: npm install -D release-it
- run: npm install -D @release-it/bumper
- name: Install dependencies
run: npm --prefix ${{ env.working-directory }} install
- name: Install Global Tools
run: npm install -g release-it @release-it/bumper auto-changelog
- name: Remove previous build directory
uses: JesseTG/rm@v1.0.2
with:
path: ${{ env.working-directory }}/build
- name: Install UI Dependencies
run: npm install
working-directory: ${{ env.UI_DIRECTORY }}
- name: Build
run: npm --prefix ${{ env.working-directory }} run build
- name: Build & Stage UI
run: npm run build && git add .
working-directory: ${{ env.UI_DIRECTORY }}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Release commit build
- id: latest_release
uses: pozetroninc/github-action-get-latest-release@master
with:
repository: ${{ github.repository }}
excludes: draft
- name: Define LAST_VERSION environment variable
run: |
echo "LAST_VERSION=${{steps.latest_release.outputs.release}}" >> $GITHUB_ENV
- name: Update version and create release
uses: TheRealWaldo/release-it@v0.2.1
with:
json-opts: '{"preRelease": true, "increment": "prepatch", "preReleaseId": "beta"}'
- name: Create Release
run: release-it --ci --increment prerelease --preRelease=beta

4
.gitignore vendored
View File

@ -11,6 +11,9 @@ bazarr.pid
/bin
/.vscode
/package.json
/package-lock.json
# Allow
!*.dll
@ -20,3 +23,4 @@ frontend/dist
frontend/*.local
frontend/.eslintcache
frontend/.idea/*
frontend/**/*.map

View File

@ -1,8 +1,11 @@
{
"git": {
"requireCleanWorkingDir": false,
"changelog": "auto-changelog --stdout"
},
"github": {
"release": true,
"releaseName": "v${version}",
"releaseNotes": "echo \"From newest to oldest:\" && git log --pretty=format:\"- %s [%h](${repo.protocol}://${repo.host}/${repo.owner}/${repo.project}/commit/%H)\" --no-merges --grep \"^Release\" --invert-grep $LAST_VERSION..HEAD"
"releaseName": "v${version}"
},
"npm": {
"publish": false,

View File

@ -1 +1 @@
0.9.4-beta.7
0.9.4-beta.8

View File

@ -1,6 +1,8 @@
From newest to oldest:
{{#each releases}}
{{#each commits}}
- {{subject}}{{#if href}} [`{{shorthash}}`]({{href}}){{/if}}
{{/each}}
{{#if @first}}
{{#each commits}}
- {{subject}}{{#if href}} [{{shorthash}}]({{href}}){{/if}}
{{/each}}
{{/if}}
{{/each}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

5987
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +0,0 @@
{
"devDependencies": {
"@release-it/bumper": "^2.0.0",
"release-it": "^14.5.0"
},
"version": "0.9.4-beta.7"
}