Skip to content

Commit

Permalink
Prepare release (#52)
Browse files Browse the repository at this point in the history
* Bump to 0.6.0

* Release workflow
  • Loading branch information
chgeo authored Feb 27, 2023
1 parent daa53d4 commit 71c2a64
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
- 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}}
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 71c2a64

Please sign in to comment.