Skip to content

Commit

Permalink
feat: Drop Node.js 10/12 support, use GitHub Actions instead of Travi…
Browse files Browse the repository at this point in the history
…s CI
  • Loading branch information
sapegin committed Jul 21, 2021
1 parent 4806a59 commit cf07f8a
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 11 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Node.js CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 14.x
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Semantic Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm ci
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Tâmia

[![Build Status](https://travis-ci.org/tamiadev/tamia.png)](https://travis-ci.org/tamiadev/tamia) [![npm](https://img.shields.io/npm/v/tamia.svg)](https://www.npmjs.com/package/tamia)
[![npm](https://img.shields.io/npm/v/tamia.svg)](https://www.npmjs.com/package/tamia) [![Node.js CI status](https://github.com/tamiadev/tamia.git/workflows/Node.js%20CI/badge.svg)](https://github.com/tamiadev/tamia.git/actions)

Tâmia is a tiny React component library with themable primitives that you can use to quickly start working on a new project.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"types"
],
"engines": {
"node": ">=10"
"node": ">=14"
},
"browserslist": [
">1%",
Expand Down

0 comments on commit cf07f8a

Please sign in to comment.