Skip to content

Commit

Permalink
Move to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
palashmon authored Apr 1, 2024
1 parent 661e1c4 commit c6436bb
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -74,4 +74,4 @@
"url": "https://opencollective.com/bundlesize",
"logo": "https://opencollective.com/opencollective/logo.txt"
}
}
}

0 comments on commit c6436bb

Please sign in to comment.