From 808991ad08867e86f88df220ac8b01803746ba12 Mon Sep 17 00:00:00 2001 From: anirudhprasad-sap <126493692+anirudhprasad-sap@users.noreply.github.com> Date: Fri, 8 Mar 2024 08:53:25 +0000 Subject: [PATCH 1/4] Added pipeline workflows --- .github/workflows/ci.yml | 26 +++++++++++++++++++++++ .github/workflows/release.yml | 39 +++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..76a8cd9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + workflow_dispatch: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: [20.x, 18.x] + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm i -g @sap/cds-dk + - run: npm i + - run: cds v + - run: npm run test \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..03578fb --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,39 @@ +name: Release + +on: + workflow_dispatch: + +permissions: + contents: write + +jobs: + publish-npm: + runs-on: ubuntu-latest + environment: npm + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ + - name: run tests + run: | + npm i -g @sap/cds-dk + npm i + npm run test + - name: get version + id: package-version + uses: martinbeentjes/npm-get-version-action@v1.2.3 + - name: parse changelog + id: parse-changelog + uses: schwma/parse-changelog-action@v1.0.0 + with: + version: '${{ steps.package-version.outputs.current-version }}' + - name: create a GitHub release + uses: ncipollo/release-action@v1 + with: + tag: 'v${{ steps.package-version.outputs.current-version }}' + body: '${{ steps.parse-changelog.outputs.body }}' + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} \ No newline at end of file From 0350f2db8363b0beea442eedff7232f682033642 Mon Sep 17 00:00:00 2001 From: anirudhprasad-sap <126493692+anirudhprasad-sap@users.noreply.github.com> Date: Fri, 8 Mar 2024 09:24:26 +0000 Subject: [PATCH 2/4] Added change log --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..2783478 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,9 @@ +# Change Log + +All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). The format is based on [Keep a Changelog](http://keepachangelog.com/). + +## Version 0.0.1 - 2024-93-08 + +### Added + +- Initial release \ No newline at end of file From c00d81693ab5af9d46f80d65473b7081a79b87cd Mon Sep 17 00:00:00 2001 From: anirudhprasad-sap <126493692+anirudhprasad-sap@users.noreply.github.com> Date: Fri, 8 Mar 2024 09:26:52 +0000 Subject: [PATCH 3/4] Deleted Metadata Creation Tool workflow --- .github/workflows/reuse.yml | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 .github/workflows/reuse.yml diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml deleted file mode 100644 index 0aa8410..0000000 --- a/.github/workflows/reuse.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: "Launch Metadata Creation Tool for REUSE" -on: - workflow_dispatch: - -jobs: - create_metadata_proposal: - runs-on: ubuntu-latest - name: "Metadata Creation Tool" - steps: - - uses: SAP/metadata-creation-tool-for-reuse@main - with: - repository_url: "${{ github.server_url }}/${{ github.repository }}" - access_token: "${{ secrets.REUSE_ACCESS_TOKEN }}" - copyright_owner: "SAP SE or an SAP affiliate company and contributors" - upstream_contact: "cap-operator@sap.com" From 68867f6c1b43f14ec5df9cfd3fb9f214fa2422a9 Mon Sep 17 00:00:00 2001 From: anirudhprasad-sap <126493692+anirudhprasad-sap@users.noreply.github.com> Date: Fri, 8 Mar 2024 09:28:01 +0000 Subject: [PATCH 4/4] update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2783478..17a222a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). The format is based on [Keep a Changelog](http://keepachangelog.com/). -## Version 0.0.1 - 2024-93-08 +## Version 0.0.1 - tbd ### Added