Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisnoo committed Jan 8, 2020
2 parents 22daa7a + f61c5ac commit 8364615
Show file tree
Hide file tree
Showing 16 changed files with 6,687 additions and 198 deletions.
10 changes: 6 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Used in GitHub Action
BANDSINTOWN_APP_ID=
47 changes: 47 additions & 0 deletions .github/workflows/lint-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Run Eslint

on:
push:
branches:
- master
paths:
- '**.js'
- '**.vue'

jobs:
eslint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# - name: Read node version
# id: node_version
# run: echo "##[set-output name=nvmrc;]$(cat .nvmrc)"
#
# - name: Install node and npm
# uses: actions/setup-node@v1
# with:
# node-version: ${{ steps.node_version.outputs.nvmrc }}

- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install npm dependencies
run: npm ci

- name: Run eslint
run: npm run lint-fix

- uses: stefanzweifel/[email protected]
with:
commit_message: "Chore: Lint JavaScript and Vue files"
branch: master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install dependencies
run: npm ci

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
8 changes: 8 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"tagFormat": "${version}",
"plugins": [
["@semantic-release/commit-analyzer", {"preset": "eslint"}],
["@semantic-release/release-notes-generator", {"preset": "eslint"}],
"@semantic-release/github"
]
}
Loading

0 comments on commit 8364615

Please sign in to comment.