diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..672678f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Release + +on: + push: + branches: [ release ] + +jobs: + + publish-npm: + runs-on: ubuntu-latest + environment: npm + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + registry-url: https://registry.npmjs.org/ + - run: npm i + - run: npm test + - name: get-version + id: package-version + uses: martinbeentjes/npm-get-version-action@v1.2.3 + - name: Create a GitHub release + uses: ncipollo/release-action@v1 + with: + tag: "v${{ steps.package-version.outputs.current-version }}" + # body: changelog... + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/CHANGELOG.md b/CHANGELOG.md index bb85d3e..b1e9c25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). The format is based on [Keep a Changelog](http://keepachangelog.com/). -## Version 0.6.0 - tbd +## Version 0.6.0 - 2023-02-27 ### Added diff --git a/package.json b/package.json index 2245df2..c43b6ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cds-swagger-ui-express", - "version": "0.5.0", + "version": "0.6.0", "description": "Swagger UI for CAP Services", "main": "index.js", "repository": {