Skip to content

Commit

Permalink
fix(deps): update dependencies
Browse files Browse the repository at this point in the history
BREAKING CHANGE: require Node.js 20+

Closes #10
  • Loading branch information
rbardini committed Aug 25, 2024
1 parent 7d23b74 commit 84fd767
Show file tree
Hide file tree
Showing 17 changed files with 2,266 additions and 1,875 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,57 +2,61 @@ name: Main
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main

jobs:
build:
name: Test and build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: 'npm'

- name: Install and build
run: npm install
run: npm ci

- name: Format-check
run: npm run format -- --check

- name: Test
run: npm test -- --coverage

- name: Coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4

release:
name: Release
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: 'npm'

- name: Install and build
run: npm install

- name: Release
uses: cycjimmy/semantic-release-action@v3
uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 24
extra_plugins: |
conventional-changelog-conventionalcommits
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no lint-staged
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"arrowParens": "avoid",
"plugins": [
"prettier-plugin-organize-imports",
"prettier-plugin-packagejson"
],
"semi": false,
"singleQuote": true,
"trailingComma": "all"
Expand Down
2 changes: 1 addition & 1 deletion bin/resumed.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env node
import { cli } from '../dist/resumed.js'
import { cli } from '../dist/index.js'
cli.parse(process.argv)
Loading

0 comments on commit 84fd767

Please sign in to comment.