From 66088642eedc10d61b18d9dcde858ce25fd9c5ee Mon Sep 17 00:00:00 2001 From: LongYinan Date: Thu, 3 Dec 2020 16:30:14 +0800 Subject: [PATCH] chore: rename branch master => main --- .github/workflows/bench.yaml | 6 +++--- .github/workflows/lint.yaml | 3 ++- .github/workflows/linux-aarch64.yaml | 3 ++- .github/workflows/linux-musl.yaml | 3 ++- .github/workflows/napi3.yaml | 3 ++- .github/workflows/test.yaml | 3 ++- .github/workflows/windows-i686.yml | 3 ++- README.md | 2 +- cli/package.json | 2 +- triples/package.json | 2 +- 10 files changed, 18 insertions(+), 12 deletions(-) diff --git a/.github/workflows/bench.yaml b/.github/workflows/bench.yaml index dc9f7cde..bcd88146 100644 --- a/.github/workflows/bench.yaml +++ b/.github/workflows/bench.yaml @@ -6,7 +6,7 @@ env: on: push: branches: - - master + - main pull_request: jobs: @@ -67,7 +67,7 @@ jobs: - name: Store benchmark result uses: rhysd/github-action-benchmark@v1 - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/main' with: tool: 'benchmarkjs' output-file-path: bench.txt @@ -76,7 +76,7 @@ jobs: - name: Store benchmark result uses: rhysd/github-action-benchmark@v1 - if: github.ref != 'refs/heads/master' + if: github.ref != 'refs/heads/main' with: tool: 'benchmarkjs' output-file-path: bench.txt diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index aaff0f0c..b24954f7 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -2,7 +2,8 @@ name: Lint on: push: - branches: [master, develop] + branches: + - main pull_request: jobs: diff --git a/.github/workflows/linux-aarch64.yaml b/.github/workflows/linux-aarch64.yaml index 89b3ab8c..d23bf725 100644 --- a/.github/workflows/linux-aarch64.yaml +++ b/.github/workflows/linux-aarch64.yaml @@ -6,7 +6,8 @@ env: on: push: - branches: [master, develop] + branches: + - main pull_request: jobs: diff --git a/.github/workflows/linux-musl.yaml b/.github/workflows/linux-musl.yaml index be088ed6..be6e0841 100644 --- a/.github/workflows/linux-musl.yaml +++ b/.github/workflows/linux-musl.yaml @@ -5,7 +5,8 @@ env: on: push: - branches: [master, develop] + branches: + - main pull_request: jobs: diff --git a/.github/workflows/napi3.yaml b/.github/workflows/napi3.yaml index 2aec33e3..62ff478b 100644 --- a/.github/workflows/napi3.yaml +++ b/.github/workflows/napi3.yaml @@ -5,7 +5,8 @@ env: on: push: - branches: [master, develop] + branches: + - main pull_request: jobs: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 354f9405..961fae71 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -5,7 +5,8 @@ env: on: push: - branches: [master, develop] + branches: + - main pull_request: jobs: diff --git a/.github/workflows/windows-i686.yml b/.github/workflows/windows-i686.yml index 006fcda6..ff8097b5 100644 --- a/.github/workflows/windows-i686.yml +++ b/.github/workflows/windows-i686.yml @@ -5,7 +5,8 @@ env: on: push: - branches: [master, develop] + branches: + - main pull_request: jobs: diff --git a/README.md b/README.md index 78919898..248bd1e7 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ A minimal library for building compiled `NodeJS` add-ons in `Rust`. ![macOS/Windows/Linux x64](https://github.com/napi-rs/napi-rs/workflows/macOS/Windows/Linux%20x64/badge.svg) ![Linux-aarch64](https://github.com/napi-rs/napi-rs/workflows/Linux-aarch64/badge.svg) ![Windows i686](https://github.com/napi-rs/napi-rs/workflows/Windows%20i686/badge.svg) -[![FreeBSD](https://api.cirrus-ci.com/github/napi-rs/napi-rs.svg)](https://cirrus-ci.com/github/napi-rs/napi-rs?branch=master) +[![FreeBSD](https://api.cirrus-ci.com/github/napi-rs/napi-rs.svg)](https://cirrus-ci.com/github/napi-rs/napi-rs?branch=main) ## Operating Systems diff --git a/cli/package.json b/cli/package.json index 82176039..336e519e 100644 --- a/cli/package.json +++ b/cli/package.json @@ -4,7 +4,7 @@ "description": "Cli tools for napi-rs", "keywords": ["cli", "rust", "napi", "n-api", "neon"], "author": "LongYinan ", - "homepage": "https://github.com/napi-rs/napi-rs/tree/master/cli#readme", + "homepage": "https://github.com/napi-rs/napi-rs", "license": "MIT", "bin": { "napi": "./scripts/index.js" diff --git a/triples/package.json b/triples/package.json index 36a67bb6..c77a2bc7 100644 --- a/triples/package.json +++ b/triples/package.json @@ -4,7 +4,7 @@ "description": "Rust target triples objects", "keywords": ["Rust", "cross-compile", "napi", "n-api", "node-rs", "napi-rs"], "author": "LongYinan ", - "homepage": "https://github.com/napi-rs/napi-rs/tree/master/triples#readme", + "homepage": "https://github.com/napi-rs/napi-rs/tree/main/triples#readme", "license": "MIT", "main": "./index.js", "types": "./index.d.ts",