Skip to content

Commit

Permalink
ci: add build task (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
pure-js committed Aug 18, 2023
1 parent ae47c75 commit 3c311e3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on:
push:

jobs:

build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run Build
run: pnpm build
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Detect browser

[![Build Status](https://travis-ci.org/pure-js/browser-detection.svg?branch=master)](https://travis-ci.org/pure-js/browser-detection)
[![Test Coverage](https://github.com/github/docs/actions/workflows/test.yml/badge.svg)
[![Build Status](https://travis-ci.org/pure-js/browser-detection.svg?branch=master)](https://github.com/github/docs/actions/workflows/build.yml/badge.svg)
[![Test Coverage](https://github.com/github/docs/actions/workflows/test.yml/badge.svg)]
[![codecov](https://codecov.io/gh/pure-js/browser-detection/branch/master/graph/badge.svg)](https://codecov.io/gh/pure-js/browser-detection)
[![Greenkeeper badge](https://badges.greenkeeper.io/pure-js/browser-detection.svg)](https://greenkeeper.io/)

Expand Down

0 comments on commit 3c311e3

Please sign in to comment.