Skip to content

Commit 4803d74

Browse files
authored
Merge pull request #288 from devmehq/develop
feat: improve build process and simplify code
2 parents 900aa5a + b3bbe56 commit 4803d74

37 files changed

+673
-6732
lines changed

.github/CONTRIBUTING.md

Lines changed: 0 additions & 137 deletions
This file was deleted.

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/renovate.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"extends": [
33
"config:base"
44
],
5+
"branchPrefix": "renovate-",
6+
"baseBranches": ["develop"],
57
"assigneesFromCodeOwners": true,
68
"packageRules": [
79
{

.github/workflows/ci.yml

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,53 @@
1-
name: ci
1+
name: CI
22
on:
3+
workflow_dispatch:
4+
workflow_call:
35
push:
46
paths:
57
- 'src/**'
6-
- 'test/**'
8+
- '__tests__/**'
79
- 'package.json'
810
- 'yarn.lock'
11+
- 'release.config.js'
912
branches:
1013
- '*'
14+
- '**'
15+
- '!master'
1116

1217
env:
18+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1320
CI: true
1421

1522
jobs:
16-
build:
17-
runs-on: ubuntu-18.04
23+
CI:
24+
runs-on: ubuntu-latest
1825
timeout-minutes: 20
1926

2027
steps:
28+
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
2129
- uses: styfle/cancel-workflow-action@0.11.0
2230
with:
23-
workflow_id: build-docker.yml
31+
workflow_id: ci.yml
2432
access_token: ${{ github.token }}
2533

2634
- uses: actions/checkout@v3
2735
with:
2836
fetch-depth: 30
29-
persist-credentials: false
3037

31-
- name: Yarn install
38+
- uses: FranzDiebold/github-env-vars-action@v2
39+
40+
- name: Yarn
41+
run: yarn install --frozen-lockfile
42+
43+
- name: Test
3244
run: |
33-
yarn
45+
yarn test
3446
35-
- name: Build
47+
- name: Release Prep
3648
run: |
37-
yarn build
49+
npm i -g semantic-release @semantic-release/git @semantic-release/github conventional-changelog-conventionalcommits
3850
39-
# - name: Test
40-
# run: |
41-
# yarn test
51+
- name: Release
52+
run: |
53+
semantic-release --no-ci --debug

.github/workflows/release.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Release
2+
on:
3+
workflow_dispatch:
4+
workflow_call:
5+
push:
6+
paths:
7+
- 'src/**'
8+
- 'yarn.lock'
9+
branches:
10+
- 'master'
11+
12+
env:
13+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
CI: true
16+
17+
jobs:
18+
Release:
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 20
21+
22+
steps:
23+
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
24+
- uses: styfle/cancel-workflow-action@0.11.0
25+
with:
26+
workflow_id: release.yml
27+
access_token: ${{ github.token }}
28+
29+
- uses: actions/checkout@v3
30+
with:
31+
fetch-depth: 30
32+
33+
- uses: FranzDiebold/github-env-vars-action@v2
34+
35+
- name: Yarn
36+
run: yarn install --frozen-lockfile
37+
38+
- name: Test
39+
run: |
40+
yarn test
41+
42+
- name: Release Prep
43+
run: |
44+
npm i -g semantic-release @semantic-release/git @semantic-release/github conventional-changelog-conventionalcommits
45+
46+
- name: Release
47+
run: |
48+
semantic-release --no-ci --debug

.husky/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.husky/commit-msg

Lines changed: 0 additions & 4 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)