From 6c152feb79f95fe0fc08ba81c1f0ec9c53f5ffd1 Mon Sep 17 00:00:00 2001 From: Adam Jeffery Date: Mon, 4 Mar 2024 16:41:49 +0000 Subject: [PATCH 1/4] Updated minor version --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 598f217..97159ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-openssl", - "version": "0.1.0", + "version": "0.2.0", "main": "main.js", "private": true, "gypfile": true, @@ -8,7 +8,8 @@ "configure": "node-gyp configure", "build": "node-gyp --debug rebuild", "indent": "indent *.c *.h", - "test": "cd test && node test.js" + "test": "cd test && node test.js", + "lint": "echo 'Linting not configured'" }, "dependencies": { "bindings": "^1.2.1" From e91b97c3d96d0a60a3522f5ae946f1e83bbd0fd5 Mon Sep 17 00:00:00 2001 From: adamjjeffery <112865524+adamjjeffery@users.noreply.github.com> Date: Tue, 5 Mar 2024 18:02:43 +0000 Subject: [PATCH 2/4] Added release workflow (#9) --- .github/workflows/release.yml | 84 +++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..1c67d06 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,84 @@ +# **What it does:** Creates a release for the library, after checking there are changes that need releasing +# **Why we have it:** To automate the tagging the process +# **Who does it impact:** LI Engineering teams + +name: Release Library + +run-name: ${{ github.ref_name }}/${{ github.workflow }} + +on: + workflow_dispatch: + inputs: + release_type: + type: choice + default: "minor" + description: Semantic Version + options: + - "major" + - "minor" + source_branch: + description: Source Branch + type: string + default: develop + required: true + base_branch: + description: Base Branch + type: string + default: master + required: true + +jobs: + + check-component-for-changes: + uses: ripjar/component-workflows/.github/workflows/check-node-component-for-changes.yaml@v2 + with: + component_branch: ${{ inputs.source_branch }} + component_base_branch: ${{ inputs.base_branch }} + secrets: inherit + + release-component: + uses: ripjar/component-workflows/.github/workflows/release-node-component.yaml@v2 + needs: [ check-component-for-changes ] + if: needs.check-component-for-changes.outputs.is_release_required == '1' + with: + product: LI + node_version: 20 + component_branch: ${{ inputs.source_branch }} + component_base_branch: ${{ inputs.base_branch }} + release_type: ${{ inputs.release_type }} + secrets: inherit + + extract-version: + runs-on: arc + if: always() + needs: [ release-component ] + outputs: + version: ${{ steps.package_version.outputs.VERSION }} + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + with: + ref: ${{ inputs.base_branch }} + - name: Get version from package.json + id: package_version + run: echo "::set-output name=VERSION::$(jq -r '.version' package.json)" + shell: bash + + bump-component-version: + uses: ripjar/component-workflows/.github/workflows/bump-node-component-version.yaml@v2 + needs: [ release-component ] + secrets: inherit + with: + component_branch: ${{ inputs.source_branch }} + + notify: + needs: [check-component-for-changes, release-component, extract-version, bump-component-version] + if: always() + uses: ripjar/li-ci-cd/.github/workflows/li-release-notify.yaml@develop + secrets: inherit + with: + repository_name: ${{ github.repository }} + is_release_required: ${{ needs.check-component-for-changes.outputs.is_release_required }} + release_result: ${{ needs.release-component.result }} + version: ${{ needs.extract-version.outputs.version }} + channel_id: 'C019Q1F40SX' From 17fae101ca74416f81fae206adccf0a2a691323f Mon Sep 17 00:00:00 2001 From: adamjjeffery <112865524+adamjjeffery@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:19:10 +0100 Subject: [PATCH 3/4] Updates .github/workflows/release.yml with new #li-releases channel id --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1c67d06..60e7f2e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -81,4 +81,4 @@ jobs: is_release_required: ${{ needs.check-component-for-changes.outputs.is_release_required }} release_result: ${{ needs.release-component.result }} version: ${{ needs.extract-version.outputs.version }} - channel_id: 'C019Q1F40SX' + channel_id: 'C06PLQQEZRA' From ef1c03a1d6ebb4409acabbfedccb5d6c21d8b5c3 Mon Sep 17 00:00:00 2001 From: Adam Martin Date: Tue, 14 Jan 2025 17:43:32 +0000 Subject: [PATCH 4/4] use middleman workflows --- .github/workflows/release.yml | 67 +++-------------------------------- 1 file changed, 4 insertions(+), 63 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 60e7f2e..00b2f3c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,3 @@ -# **What it does:** Creates a release for the library, after checking there are changes that need releasing -# **Why we have it:** To automate the tagging the process -# **Who does it impact:** LI Engineering teams - name: Release Library run-name: ${{ github.ref_name }}/${{ github.workflow }} @@ -9,13 +5,6 @@ run-name: ${{ github.ref_name }}/${{ github.workflow }} on: workflow_dispatch: inputs: - release_type: - type: choice - default: "minor" - description: Semantic Version - options: - - "major" - - "minor" source_branch: description: Source Branch type: string @@ -28,57 +17,9 @@ on: required: true jobs: - - check-component-for-changes: - uses: ripjar/component-workflows/.github/workflows/check-node-component-for-changes.yaml@v2 - with: - component_branch: ${{ inputs.source_branch }} - component_base_branch: ${{ inputs.base_branch }} - secrets: inherit - - release-component: - uses: ripjar/component-workflows/.github/workflows/release-node-component.yaml@v2 - needs: [ check-component-for-changes ] - if: needs.check-component-for-changes.outputs.is_release_required == '1' + release: + uses: ripjar/li-ci-cd/.github/workflows/core.release-component.yaml@develop with: - product: LI - node_version: 20 - component_branch: ${{ inputs.source_branch }} - component_base_branch: ${{ inputs.base_branch }} - release_type: ${{ inputs.release_type }} + source_branch: ${{ inputs.source_branch }} + base_branch: ${{ inputs.base_branch }} secrets: inherit - - extract-version: - runs-on: arc - if: always() - needs: [ release-component ] - outputs: - version: ${{ steps.package_version.outputs.VERSION }} - steps: - - name: Checkout Repository - uses: actions/checkout@v2 - with: - ref: ${{ inputs.base_branch }} - - name: Get version from package.json - id: package_version - run: echo "::set-output name=VERSION::$(jq -r '.version' package.json)" - shell: bash - - bump-component-version: - uses: ripjar/component-workflows/.github/workflows/bump-node-component-version.yaml@v2 - needs: [ release-component ] - secrets: inherit - with: - component_branch: ${{ inputs.source_branch }} - - notify: - needs: [check-component-for-changes, release-component, extract-version, bump-component-version] - if: always() - uses: ripjar/li-ci-cd/.github/workflows/li-release-notify.yaml@develop - secrets: inherit - with: - repository_name: ${{ github.repository }} - is_release_required: ${{ needs.check-component-for-changes.outputs.is_release_required }} - release_result: ${{ needs.release-component.result }} - version: ${{ needs.extract-version.outputs.version }} - channel_id: 'C06PLQQEZRA'