Skip to content

Commit 41126cc

Browse files
authored
chore(main): Rename Master to main. (#222)
1 parent ef4cafc commit 41126cc

File tree

8 files changed

+108
-163
lines changed

8 files changed

+108
-163
lines changed

.devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"dbaeumer.vscode-eslint",
1616
"eamodio.gitlens",
1717
"visualstudioexptteam.vscodeintellicode",
18-
"piotrpalarz.vscode-gitignore-generator"
18+
"piotrpalarz.vscode-gitignore-generator",
19+
"redhat.vscode-yaml"
1920
],
2021

2122
"remoteUser": "node",

.github/workflows/Code Quality.yml

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

.github/workflows/Push.yml

Lines changed: 96 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,76 @@
1-
name: Testing
1+
name: Push Workflow
22

33
on:
44
push:
55
branches:
66
- master
7+
- main
78
pull_request:
89
branches:
910
- master
11+
- main
1012

1113
jobs:
14+
Prettier:
15+
name: Prettier
16+
strategy:
17+
matrix:
18+
node: ['15.x']
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
- uses: actions/setup-node@v2.1.4
24+
with:
25+
node-version: ${{ matrix.node }}
26+
registry-url: 'https://registry.npmjs.org'
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Run Prettier
32+
run: npm run prettier
33+
34+
ESLint:
35+
name: ESLint
36+
strategy:
37+
matrix:
38+
node: ['15.x']
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v2
42+
43+
- uses: actions/setup-node@v2.1.4
44+
with:
45+
node-version: ${{ matrix.node }}
46+
registry-url: 'https://registry.npmjs.org'
47+
48+
- name: Install dependencies
49+
run: npm ci
50+
51+
- name: Run ESLint
52+
run: npm run lint
53+
54+
TSC:
55+
name: TSC Typecheck
56+
strategy:
57+
matrix:
58+
node: ['15.x']
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions/checkout@v2
62+
63+
- uses: actions/setup-node@v2.1.4
64+
with:
65+
node-version: ${{ matrix.node }}
66+
registry-url: 'https://registry.npmjs.org'
67+
68+
- name: Install dependencies
69+
run: npm ci
70+
71+
- name: Run TSC Typechecking
72+
run: npm run typecheck
73+
1274
IntegrationTest:
1375
name: Integration Tests
1476
strategy:
@@ -30,23 +92,36 @@ jobs:
3092
- name: Run Integration Tests
3193
run: npm run test:integration
3294

33-
# UnitTests:
34-
# name: Unit Tests
35-
# strategy:
36-
# matrix:
37-
# os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
38-
# node: ['13.9', '13.10', '13.11', '14.1', '14.4', '14.15.1', '>=14.15.0']
39-
# runs-on: ${{ matrix.os }}
40-
# steps:
41-
# - uses: actions/checkout@v2
42-
43-
# - uses: actions/setup-node@v2.1.4
44-
# with:
45-
# node-version: ${{ matrix.node }}
46-
# registry-url: 'https://registry.npmjs.org'
47-
48-
# - name: Install dependencies
49-
# run: npm ci
50-
51-
# - name: Run Unit Tests
52-
# run: npm run test:integration
95+
Publish:
96+
name: NPM Publish
97+
runs-on: ubuntu-latest
98+
needs: [IntegrationTest, TSC, Prettier, ESLint]
99+
if: github.ref == 'refs/heads/main'
100+
steps:
101+
- uses: actions/checkout@v2
102+
with:
103+
fetch-depth: 0
104+
persist-credentials: false
105+
106+
- uses: actions/setup-node@v2.1.4
107+
with:
108+
node-version: '14.x'
109+
registry-url: 'https://registry.npmjs.org'
110+
111+
- name: Install dependencies
112+
run: npm ci
113+
114+
## Run [semantic-release](https://github.com/semantic-release/semantic-release) auto release/publish system
115+
- name: Run semantic-release
116+
run: npx semantic-release
117+
env:
118+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
119+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
120+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
121+
122+
## Dedicated bot user for all @K-FOSS Repos
123+
GIT_AUTHOR_NAME: 'KJDev-Bots'
124+
GIT_COMMITTER_NAME: 'KJDev-Bots'
125+
GIT_AUTHOR_EMAIL: 'bots@kristianjones.dev'
126+
GIT_COMMITTER_EMAIL: 'bots@kristianjones.dev'
127+

.github/workflows/Release.yml

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

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "CodeQL"
1+
name: CodeQL
22

33
on:
44
push:

.releaserc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@semantic-release/github"
2828
],
2929
"branches": [
30-
"master",
30+
"main",
3131
"next"
3232
]
3333
}

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"typescript.tsdk": "node_modules/typescript/lib"
2+
"typescript.tsdk": "node_modules/typescript/lib",
3+
"yaml.schemas": {
4+
"https://json.schemastore.org/github-workflow": [".github/workflow/*.yaml", ".github/workflow/*.yml"]
5+
}
36
}

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)