Skip to content

Commit

Permalink
chore: Rename master branch to main
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Jul 25, 2023
1 parent dd284ff commit 92b25c6
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 64 deletions.
120 changes: 60 additions & 60 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
name: build

on:
push:
branches:
- master
- beta
pull_request:
branches:
- master
- beta
workflow_dispatch:
push:
branches:
- main
- beta
pull_request:
branches:
- main
- beta
workflow_dispatch:

jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16, 18]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Required to retrieve git history
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.7.0
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install latest npm
run: |
npm i -g npm@8
- run: npm ci
- name: Lint files
run: npm run lint
- name: Check typing
run: npm run type-check
- name: Run tests
run: npm run test
release:
timeout-minutes: 60
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Required to retrieve git history
token: ${{ secrets.GH_TOKEN_SEMANTIC }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.7.0
with:
node-version: 14
cache: "npm"
- name: Install latest npm
run: |
npm i -g npm@8
- run: npm ci
- name: Build assets
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run semantic-release
test:
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16, 18]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Required to retrieve git history
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.7.0
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install latest npm
run: |
npm i -g npm@8
- run: npm ci
- name: Lint files
run: npm run lint
- name: Check typing
run: npm run type-check
- name: Run tests
run: npm run test
release:
timeout-minutes: 60
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Required to retrieve git history
token: ${{ secrets.GH_TOKEN_SEMANTIC }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.7.0
with:
node-version: 14
cache: 'npm'
- name: Install latest npm
run: |
npm i -g npm@8
- run: npm ci
- name: Build assets
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run semantic-release
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: 'CodeQL'

on:
push:
branches: [master]
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
branches: [main]
schedule:
- cron: '35 23 * * 5'

Expand Down
2 changes: 1 addition & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
],
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"master",
"main",
"next",
"next-major",
{
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Actions Status](https://github.com/valentinpalkovic/prisma-json-schema-generator/workflows/build/badge.svg)](https://github.com/valentinpalkovic/prisma-json-schema-generator/actions)
[![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)
[![npm](https://img.shields.io/npm/v/prisma-json-schema-generator)](https://www.npmjs.com/package/prisma-json-schema-generator)
[![GitHub license](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)](https://github.com/valentinpalkovic/prisma-json-schema-generator/blob/master/LICENSE)
[![GitHub license](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)](https://github.com/valentinpalkovic/prisma-json-schema-generator/blob/main/LICENSE)
[![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)
[![Open Source? Yes!](https://badgen.net/badge/Open%20Source%20%3F/Yes%21/blue?icon=github)](https://github.com/Naereen/badges/)

Expand Down

0 comments on commit 92b25c6

Please sign in to comment.