From c6436bb7df12f7a1fc900dd139fce8377cc307d1 Mon Sep 17 00:00:00 2001 From: Palash Mondal Date: Mon, 1 Apr 2024 22:32:09 +0530 Subject: [PATCH] Move to GitHub actions --- .github/workflows/main.yml | 21 +++++++++++++++++++++ README.md | 8 ++++---- package.json | 6 +++--- 3 files changed, 28 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..1944be1 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,21 @@ +name: CI +on: + - push + - pull_request +jobs: + test: + name: Node.js ${{ matrix.node-version }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: + - 21 + - 20 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test \ No newline at end of file diff --git a/README.md b/README.md index e4a4624..01f3757 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,9 @@   -[![Build Status](https://travis-ci.org/siddharthkp/bundlesize.svg?branch=master)](https://travis-ci.org/siddharthkp/bundlesize) -[![NPM Version](https://img.shields.io/npm/v/bundlesize.svg)](https://npmjs.org/package/bundlesize) -[![NPM Downloads](https://img.shields.io/npm/dm/bundlesize.svg?style=flat)](https://www.npmjs.com/package/bundlesize) +![Build Status](https://github.com/palashmon/bundlesize/actions/workflows/main.yml/badge.svg?branch=master) +[![NPM Version](https://img.shields.io/npm/v/@palashmon/bundlesize.svg)](https://npmjs.org/package/@palashmon/bundlesize) +[![NPM Downloads](https://img.shields.io/npm/dm/bundlesize.svg?style=flat)](https://www.npmjs.com/package/@palashmon/bundlesize)   #### Setup @@ -191,7 +191,7 @@ You will need to supply an additional 5 environment variables. - `CI_REPO_NAME` given the repo `https://github.com/myusername/myrepo` would be `myrepo` - `CI_COMMIT_MESSAGE` the commit message - `CI_COMMIT_SHA` the SHA of the CI commit, in [Jenkins](https://jenkins.io/) you would use `${env.GIT_COMMIT}` -- `CI=true` usually set automatically in CI environments +- `CI=true` usually set automatically in CI environments (Ask me for help if you're stuck) diff --git a/package.json b/package.json index 2671cd6..f7e41cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "bundlesize", - "version": "0.18.1", + "name": "@palashmon/bundlesize", + "version": "0.18.4", "description": "Keep your library size in check", "repository": { "type": "git", @@ -74,4 +74,4 @@ "url": "https://opencollective.com/bundlesize", "logo": "https://opencollective.com/opencollective/logo.txt" } -} +} \ No newline at end of file