Skip to content

Commit

Permalink
chore: update dev environment (#29)
Browse files Browse the repository at this point in the history
* chore: update dev env to node 20

* chore: remove lint-staged

* chore: configure changesets

* chore: setup dependabot
  • Loading branch information
toomuchdesign authored Jul 3, 2024
1 parent 977202f commit 4b0cd8a
Show file tree
Hide file tree
Showing 12 changed files with 6,601 additions and 5,264 deletions.
12 changes: 12 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": [],
"title": "chore: release"
}
5 changes: 5 additions & 0 deletions .changeset/modern-avocados-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'next-use-contextual-routing': minor
---

Undeprecate project
31 changes: 31 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
groups:
testing-library:
patterns:
- '@testing-library/*'
react:
patterns:
- 'react'
- 'react-dom'
- '@types/react'
- '@types/react-dom'
jest:
patterns:
- 'jest*'
- 'ts-jest'
- '@types/jest'

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
groups:
upload-download-artifact:
patterns:
- 'actions/upload-artifact'
- 'actions/download-artifact'
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,22 @@ on:
- master
pull_request:

env:
CI: true

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js 18
uses: actions/setup-node@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
node-version-file: '.nvmrc'

- run: npm ci
env:
HUSKY_SKIP_INSTALL: 1

- name: Upload code coverage
uses: coverallsapp/github-action@master
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Dependabot auto merge

on:
pull_request:

jobs:
dependabot-auto-merge:
name: 'Dependabot auto merge'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: minor
github-token: ${{ secrets.READ_AND_WRITE_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

on:
push:
branches:
- master

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release new version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.READ_AND_WRITE_TOKEN }}

- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- run: npm ci

- name: Create release pull request
uses: changesets/action@v1
with:
publish: npm run tag
env:
GITHUB_TOKEN: ${{ secrets.READ_AND_WRITE_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ demo/out
!.travis.yml
!.github
!.nvmrc
!.changeset
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
4 changes: 0 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# 3.1.0

### Undeprecate project

# 3.0.2

### Deprecate project
Expand Down
Loading

0 comments on commit 4b0cd8a

Please sign in to comment.