Skip to content

Commit 69d3fde

Browse files
committed
feat: initial first version
1 parent a1bc75b commit 69d3fde

File tree

3 files changed

+85
-0
lines changed

3 files changed

+85
-0
lines changed

.github/dependabot.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
timezone: "Asia/Saigon"
8+
time: "00:00"
9+
target-branch: "develop"
10+
open-pull-requests-limit: 20
11+
reviewers:
12+
- "hckhanh"
13+
commit-message:
14+
prefix: "deps"
15+
include: "scope"
16+
- package-ecosystem: "github-actions"
17+
directory: "/"
18+
schedule:
19+
interval: "daily"
20+
timezone: "Asia/Saigon"
21+
time: "15:30"
22+
target-branch: "develop"
23+
open-pull-requests-limit: 20
24+
reviewers:
25+
- "hckhanh"
26+
commit-message:
27+
prefix: "build"

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
name: npm
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
- name: Set up Node
20+
uses: actions/setup-node@v2.1.2
21+
with:
22+
check-latest: true
23+
- name: Get yarn cache directory path
24+
id: yarn-cache-dir-path
25+
run: echo "::set-output name=dir::$(yarn cache dir)"
26+
- name: Cache dependencies and build outputs
27+
uses: actions/cache@v2
28+
id: yarn-cache
29+
with:
30+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
31+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
32+
restore-keys: |
33+
${{ runner.os }}-yarn-
34+
- name: Check dependencies
35+
run: yarn --frozen-lockfile --check-files
36+
- name: Run tests
37+
run: yarn test
38+
- name: Release
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
42+
run: npx semantic-release

package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,22 @@
4545
"oclif": {
4646
"bin": "pg2bigquery"
4747
},
48+
"release": {
49+
"branches": [
50+
"+([0-9])?(.{+([0-9]),x}).x",
51+
"main",
52+
"next",
53+
"next-major",
54+
{
55+
"name": "beta",
56+
"prerelease": true
57+
},
58+
{
59+
"name": "alpha",
60+
"prerelease": true
61+
}
62+
]
63+
},
4864
"repository": "hckhanh/pg2bigquery",
4965
"scripts": {
5066
"posttest": "eslint . --ext .ts --config .eslintrc",

0 commit comments

Comments
 (0)