From 43fca1b61baf2dd6a1079835450b7ff3841d2664 Mon Sep 17 00:00:00 2001 From: Michael Cousins Date: Fri, 14 Apr 2023 13:44:04 -0400 Subject: [PATCH] Change main branch to `main` (#82) --- .github/workflows/ci-cd.yml | 9 +++++---- README.md | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 767cc5c..99a5772 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -1,11 +1,12 @@ name: CI-CD on: + pull_request: + branches: + - main push: branches: - - "*" - tags-ignore: - - "*" + - main # run CI every Monday at 12:25 UTC schedule: @@ -177,7 +178,7 @@ jobs: exit 1 deploy: - if: ${{ github.ref == 'refs/heads/master' }} + if: ${{ github.ref == 'refs/heads/main' }} name: Publish to NPM runs-on: ubuntu-latest timeout-minutes: 10 diff --git a/README.md b/README.md index b3368c7..3f23b70 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Cross-Platform Compatibility](https://jstools.dev/img/badges/os-badges.svg)](https://github.com/JS-DevTools/npm-publish/actions) [![Build Status](https://github.com/JS-DevTools/npm-publish/workflows/CI-CD/badge.svg)](https://github.com/JS-DevTools/npm-publish/actions) -[![Coverage Status](https://coveralls.io/repos/github/JS-DevTools/npm-publish/badge.svg?branch=master)](https://coveralls.io/github/JS-DevTools/npm-publish) +[![Coverage Status](https://coveralls.io/repos/github/JS-DevTools/npm-publish/badge.svg?branch=main)](https://coveralls.io/github/JS-DevTools/npm-publish) [![npm](https://img.shields.io/npm/v/@jsdevtools/npm-publish.svg)](https://www.npmjs.com/package/@jsdevtools/npm-publish) [![License](https://img.shields.io/npm/l/@jsdevtools/npm-publish.svg)](LICENSE) @@ -50,7 +50,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 12 + node-version: 18 - run: npm ci - run: npm test - uses: JS-DevTools/npm-publish@v1