From 9b7a5a5d5434243ac953ba08112a66184cfcd965 Mon Sep 17 00:00:00 2001 From: Jairo <68893868+jairo-bc@users.noreply.github.com> Date: Mon, 19 Aug 2024 20:17:50 +0200 Subject: [PATCH] feat: STRF-11900 Drop node 18, add node 20, 22 (#383) BREAKING CHANGE: Drop support of node 16, 18 --- .github/workflows/build.yml | 2 +- .github/workflows/bump-hbs-version.yml | 44 -------------------------- .github/workflows/release.yml | 2 +- .nvmrc | 2 +- package.json | 20 ++++++------ 5 files changed, 13 insertions(+), 57 deletions(-) delete mode 100644 .github/workflows/bump-hbs-version.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b6e9a81..0729675 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: - node: [18.x] + node: [20.x, 22.x] env: TITLE: ${{ github.event.pull_request.title }} diff --git a/.github/workflows/bump-hbs-version.yml b/.github/workflows/bump-hbs-version.yml deleted file mode 100644 index ee1b059..0000000 --- a/.github/workflows/bump-hbs-version.yml +++ /dev/null @@ -1,44 +0,0 @@ -# This workflow receives event from paper-handlebars (on release created) and create a PR to bump version - -on: - repository_dispatch: - types: [bump_hbs] - -jobs: - bump-paper-handlebars: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Bump version - env: - VERSION: ${{ github.event.version }} - run: sed "s/\(\"@bigcommerce\/stencil-paper-handlebars\":\s+\"\)\d+\.\d+\.\d+/\1$VERSION\2/g" package.json - - run: echo $NOTES - env: - NOTES: ${{ github.event.notes }} - - name: Test - run: cat package.json - - name: Create Pull Request - id: cpr - uses: peter-evans/create-pull-request@v4 - with: - token: ${{ secrets.PAT }} - commit-message: Bump paper handlebars version - committer: GitHub - author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - branch: bump-paper-handlebars - delete-branch: true - title: 'fix: Bump Paper Handlebars' # todo set appropriate commit type - body: | - - - Bump Paper Handlebars - - Auto-generated by [create-pull-request][1] - - [1]: https://github.com/peter-evans/create-pull-request - labels: - automated pr - team-reviewers: | - owners - maintainers - draft: false - \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a4e30bf..0dd7a85 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '18.x' + node-version: '20.x' - run: npm i - name: Check Git Commit name run: git log -1 --pretty=format:"%s" | npx commitlint diff --git a/.nvmrc b/.nvmrc index da2d398..209e3ef 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -14 \ No newline at end of file +20 diff --git a/package.json b/package.json index 554d0ee..6ac9047 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "scripts": { "lint": "eslint .", "lint-and-fix": "eslint . --fix", - "test": "lab -v -t 95 --ignore i18n,WebAssembly,SharedArrayBuffer,Atomics,BigUint64Array,BigInt64Array,BigInt,URL,URLSearchParams,TextEncoder,TextDecoder,queueMicrotask,FinalizationRegistry,WeakRef,plural,en,number,select,__extends,__assign,__rest,__decorate,__param,__esDecorate,__runInitializers,__propKey,__setFunctionName,__metadata,__awaiter,__generator,__exportStar,__createBinding,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateObject,__importStar,__importDefault,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,AggregateError,BroadcastChannel,structuredClone,DOMException,AbortController,AbortSignal,EventTarget,Event,MessageChannel,MessagePort,MessageEvent,atob,btoa,Blob,Performance,performance,ReadableStream,ReadableStreamDefaultReader,ReadableStreamBYOBReader,ReadableStreamBYOBRequest,ReadableByteStreamController,ReadableStreamDefaultController,TransformStream,TransformStreamDefaultController,WritableStream,WritableStreamDefaultWriter,WritableStreamDefaultController,ByteLengthQueuingStrategy,CountQueuingStrategy,TextEncoderStream,TextDecoderStream,CompressionStream,DecompressionStream,fetch,FormData,Headers,Request,Response,__addDisposableResource,__disposeResources spec", + "test": "lab -v -t 95 --ignore i18n,WebAssembly,SharedArrayBuffer,Atomics,BigUint64Array,BigInt64Array,BigInt,URL,URLSearchParams,TextEncoder,TextDecoder,queueMicrotask,FinalizationRegistry,WeakRef,plural,en,number,select,__extends,__assign,__rest,__decorate,__param,__esDecorate,__runInitializers,__propKey,__setFunctionName,__metadata,__awaiter,__generator,__exportStar,__createBinding,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateObject,__importStar,__importDefault,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,AggregateError,BroadcastChannel,structuredClone,DOMException,AbortController,AbortSignal,EventTarget,Event,MessageChannel,MessagePort,MessageEvent,atob,btoa,Blob,Performance,performance,ReadableStream,ReadableStreamDefaultReader,ReadableStreamBYOBReader,ReadableStreamBYOBRequest,ReadableByteStreamController,ReadableStreamDefaultController,TransformStream,TransformStreamDefaultController,WritableStream,WritableStreamDefaultWriter,WritableStreamDefaultController,ByteLengthQueuingStrategy,CountQueuingStrategy,TextEncoderStream,TextDecoderStream,CompressionStream,DecompressionStream,fetch,FormData,Headers,Request,Response,__addDisposableResource,__disposeResources,File,PerformanceEntry,PerformanceMark,PerformanceMeasure,PerformanceObserver,PerformanceObserverEntryList,PerformanceResourceTiming,WebSocket,Iterator,Navigator,navigator,crypto,Crypto,CryptoKey,SubtleCrypto,CustomEvent spec", "coverage": "lab -c -r console -o stdout -r html -o coverage.html spec", "release": "semantic-release" }, @@ -25,24 +25,24 @@ }, "homepage": "https://github.com/bigcommerce/paper", "dependencies": { - "@bigcommerce/stencil-paper-handlebars": "^5.11.3", + "@bigcommerce/stencil-paper-handlebars": "6.0.0", "accept-language-parser": "~1.4.1", "messageformat": "~0.2.2" }, "devDependencies": { - "@commitlint/cli": "^17.1.2", - "@commitlint/config-conventional": "^17.1.0", - "@semantic-release/changelog": "^6.0.1", - "@semantic-release/commit-analyzer": "^9.0.2", + "@commitlint/cli": "^19.4.0", + "@commitlint/config-conventional": "^19.2.2", + "@semantic-release/changelog": "^6.0.3", + "@semantic-release/commit-analyzer": "^13.0.0", "@semantic-release/git": "^10.0.1", - "@semantic-release/github": "^8.0.6", - "@semantic-release/npm": "^9.0.1", - "@semantic-release/release-notes-generator": "^10.0.3", + "@semantic-release/github": "^10.1.6", + "@semantic-release/npm": "^12.0.1", + "@semantic-release/release-notes-generator": "^14.0.1", "code": "~4.0.0", "eslint": "^7.8.1", "husky": "^8.0.1", "lab": "~13.0.1", - "semantic-release": "^19.0.5", + "semantic-release": "^24.1.0", "semantic-release-github-pullrequest": "https://github.com/jairo-bc/semantic-release-github-pullrequest", "sinon": "~7.5.0" }