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 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" diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..17a222a --- /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 - tbd + +### Added + +- Initial release \ No newline at end of file