Skip to content

Commit 92b25c6

Browse files
chore: Rename master branch to main
1 parent dd284ff commit 92b25c6

File tree

4 files changed

+64
-64
lines changed

4 files changed

+64
-64
lines changed

.github/workflows/actions.yml

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
11
name: build
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
- beta
8-
pull_request:
9-
branches:
10-
- master
11-
- beta
12-
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
- beta
8+
pull_request:
9+
branches:
10+
- main
11+
- beta
12+
workflow_dispatch:
1313

1414
jobs:
15-
test:
16-
timeout-minutes: 10
17-
runs-on: ubuntu-latest
18-
strategy:
19-
matrix:
20-
node-version: [14, 16, 18]
21-
steps:
22-
- uses: actions/checkout@v3
23-
with:
24-
fetch-depth: 0 # Required to retrieve git history
25-
- name: Use Node.js ${{ matrix.node-version }}
26-
uses: actions/[email protected]
27-
with:
28-
node-version: ${{ matrix.node-version }}
29-
cache: "npm"
30-
- name: Install latest npm
31-
run: |
32-
npm i -g npm@8
33-
- run: npm ci
34-
- name: Lint files
35-
run: npm run lint
36-
- name: Check typing
37-
run: npm run type-check
38-
- name: Run tests
39-
run: npm run test
40-
release:
41-
timeout-minutes: 60
42-
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
43-
runs-on: ubuntu-latest
44-
needs: test
45-
steps:
46-
- uses: actions/checkout@v3
47-
with:
48-
fetch-depth: 0 # Required to retrieve git history
49-
token: ${{ secrets.GH_TOKEN_SEMANTIC }}
50-
- name: Use Node.js ${{ matrix.node-version }}
51-
uses: actions/[email protected]
52-
with:
53-
node-version: 14
54-
cache: "npm"
55-
- name: Install latest npm
56-
run: |
57-
npm i -g npm@8
58-
- run: npm ci
59-
- name: Build assets
60-
run: npm run build
61-
- name: Release
62-
env:
63-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
65-
run: npm run semantic-release
15+
test:
16+
timeout-minutes: 10
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
node-version: [14, 16, 18]
21+
steps:
22+
- uses: actions/checkout@v3
23+
with:
24+
fetch-depth: 0 # Required to retrieve git history
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/[email protected]
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
cache: 'npm'
30+
- name: Install latest npm
31+
run: |
32+
npm i -g npm@8
33+
- run: npm ci
34+
- name: Lint files
35+
run: npm run lint
36+
- name: Check typing
37+
run: npm run type-check
38+
- name: Run tests
39+
run: npm run test
40+
release:
41+
timeout-minutes: 60
42+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
43+
runs-on: ubuntu-latest
44+
needs: test
45+
steps:
46+
- uses: actions/checkout@v3
47+
with:
48+
fetch-depth: 0 # Required to retrieve git history
49+
token: ${{ secrets.GH_TOKEN_SEMANTIC }}
50+
- name: Use Node.js ${{ matrix.node-version }}
51+
uses: actions/[email protected]
52+
with:
53+
node-version: 14
54+
cache: 'npm'
55+
- name: Install latest npm
56+
run: |
57+
npm i -g npm@8
58+
- run: npm ci
59+
- name: Build assets
60+
run: npm run build
61+
- name: Release
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
65+
run: npm run semantic-release

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ name: 'CodeQL'
1313

1414
on:
1515
push:
16-
branches: [master]
16+
branches: [main]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [master]
19+
branches: [main]
2020
schedule:
2121
- cron: '35 23 * * 5'
2222

.releaserc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
],
4444
"branches": [
4545
"+([0-9])?(.{+([0-9]),x}).x",
46-
"master",
46+
"main",
4747
"next",
4848
"next-major",
4949
{

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Actions Status](https://github.com/valentinpalkovic/prisma-json-schema-generator/workflows/build/badge.svg)](https://github.com/valentinpalkovic/prisma-json-schema-generator/actions)
22
[![Code QL](https://github.com/valentinpalkovic/prisma-json-schema-generator/workflows/CodeQL/badge.svg)](https://github.com/valentinpalkovic/prisma-json-schema-generator/workflows/CodeQL/badge.svg)
33
[![npm](https://img.shields.io/npm/v/prisma-json-schema-generator)](https://www.npmjs.com/package/prisma-json-schema-generator)
4-
[![GitHub license](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)](https://github.com/valentinpalkovic/prisma-json-schema-generator/blob/master/LICENSE)
4+
[![GitHub license](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)](https://github.com/valentinpalkovic/prisma-json-schema-generator/blob/main/LICENSE)
55
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
66
[![Open Source? Yes!](https://badgen.net/badge/Open%20Source%20%3F/Yes%21/blue?icon=github)](https://github.com/Naereen/badges/)
77

0 commit comments

Comments
 (0)