Skip to content

Commit

Permalink
Refreshed and improved to support bootstraping of major upgrade PR 🚀 …
Browse files Browse the repository at this point in the history
…🌬️ (#143)

Merge pull request #143 from CoorpAcademy/refreshed-and-improved

Huge set of enhancements to the project, with main goals to refresh dependencies and to support the add hoc draft of major bump pull requests

- Refreshing 🌬️
  - 🚥 test on latest node 522ce7c
  - 🐙 test on github actions 2701e91
  - 📤 bump of major library, replacement of outdated ones (request, bluebird), modern rewrite of async code

- New features 🚀
  - 🎟️ ability to infer user & retrieve token from gh cli authentification 533384a
  - 📂 ability to run on a specific folder 90a347a
  - 🎯 ability to target a specific node version from command line b6329ca
  - 🛡️ force-with-lease by default (with optional override) d015ab0
  - 📝 customizable reviewers and messages 361aeb4 + 197b7b8
  - 🚒 preserve original engine range b557b67
  • Loading branch information
AdrieanKhisbe authored Sep 25, 2024
2 parents 1ade694 + dfbc698 commit 4e88104
Show file tree
Hide file tree
Showing 29 changed files with 6,056 additions and 5,539 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
],
"rules": {
"no-continue": "off",
"fp/no-loops": "off"
"fp/no-loops": "off",
"no-nested-ternary": "off",
},
"overrides": [
{
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

name: Update node CI

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 18.x
- 20.x
- 22.x

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: git config --global user.email "[email protected]" && git config --global user.name "Update Node"
- run: npm ci
- run: npm test
- name: Upload coverage
uses: codecov/codecov-action@v3
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.17.1
v20.17.0
16 changes: 10 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dist: jammy
language: node_js
node_js: 18
node_js: 20
anchor: &npm npm # This is here to show comment and preserved
cache: *npm
install: npm ci
Expand All @@ -18,13 +18,17 @@ jobs:

- &test
stage: test
name: test-update-node16
node_js: '16'
script: npm run test:all
after_success: npm run publish-coverage
- <<: *test
name: test-update-node18
node_js: '18'
script: npm run test:all

- <<: *test
name: test-update-node20
node_js: '20'

- <<: *test
name: test-update-node22
node_js: '22'

- stage: auto-bump
name: auto-bump
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Update node :outbox_tray:

[![Npm version](https://img.shields.io/npm/v/@coorpacademy/update-node.svg)](https://www.npmjs.com/package/@coorpacademy/update-node)
[![Build Status](https://travis-ci.com/CoorpAcademy/update-node.svg?branch=master)](https://travis-ci.com/CoorpAcademy/update-node)
[![Build Status](https://app.travis-ci.com/CoorpAcademy/update-node.svg?token=KnYzxEMEXjZwczDR8x2L&branch=master)](https://travis-ci.com/CoorpAcademy/update-node)
[![Github Actions Status](https://github.com/coorpacademy/update-node/actions/workflows/ci.yml/badge.svg)](https://github.com/CoorpAcademy/update-node/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/CoorpAcademy/update-node/branch/master/graph/badge.svg)](https://codecov.io/gh/CoorpAcademy/update-node)

## Options :gear:
Expand All @@ -23,6 +24,9 @@ Options:
--version Show version number [boolean]
--local, -l Run in local mode with github publication [boolean]
--token, -t Token to authentificate to github [string]
--folder, -f Run in a specific folder [string]
--force, -F Git Push with force changes
(--force-with-lease is used by default) [boolean]
--config, -c Override update-node configuration default path [string]
--auto, -A Select automatically behavior to adopt based on current commit
and branch [boolean]
Expand Down
Loading

0 comments on commit 4e88104

Please sign in to comment.