Skip to content

Commit

Permalink
feat: Upgrade the release process
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

Node.js 20 is the minimum supported version
  • Loading branch information
sapegin committed May 9, 2024
1 parent 4d1d0f9 commit b064a13
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 17 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Node.js CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'npm'
- run: npm ci
- run: npm test
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Semantic Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'npm'
- run: npm ci
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "react-group",
"description": "React component to render collection of items separated by space or other separator",
"description": "React component to render collection of items separated by space or another separator",
"version": "0.0.0-development",
"homepage": "https://github.com/sapegin/react-group",
"author": {
"name": "Artem Sapegin",
"url": "http://sapegin.me/"
"url": "https://sapegin.me/"
},
"repository": {
"type": "git",
Expand All @@ -22,7 +22,7 @@
"index.d.ts"
],
"engines": {
"node": ">=6"
"node": ">=20"
},
"dependencies": {
"prop-types": "^15.8.1"
Expand Down Expand Up @@ -70,7 +70,7 @@
"testEnvironment": "jest-environment-jsdom"
},
"lint-staged": {
"*.{js,md}": [
"*.{js,ts,md}": [
"prettier --write",
"git add"
],
Expand Down

0 comments on commit b064a13

Please sign in to comment.