Skip to content

Commit

Permalink
ci: add semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
markusheinemann authored Jun 1, 2022
1 parent ddb079f commit 35d70da
Show file tree
Hide file tree
Showing 4 changed files with 3,014 additions and 19 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release

on:
push:
branches:
- main

jobs:
create-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Run semantic-release
run: yarn semantic-release
16 changes: 16 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"release": {
"branches": "master"
},
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
"@semantic-release/git"
]
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Rancher UI driver for the Hetzner Cloud docker-machine driver",
"repository": {
"type": "git",
"url": "git+https://github.com/mxschmitt/ui-driver-hetzner.git"
"url": "git+https://github.com/markusheinemann/ui-driver-hetzner.git"
},
"author": "Max Schmitt",
"license": "Apache-2.0",
Expand All @@ -20,6 +20,7 @@
"devDependencies": {
"@babel/core": "^7.7.5",
"@babel/preset-env": "^7.7.6",
"@semantic-release/git": "^10.0.1",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-plugin-transform-es2015-modules-amd": "^6.24.1",
"babel-preset-env": "^1.7.0",
Expand All @@ -33,6 +34,7 @@
"gulp-sourcemaps": "2.6.5",
"jshint": "2.10.3",
"replace-string": "^3.0.0",
"semantic-release": "^19.0.2",
"yargs": "15.0.2"
}
}
Loading

0 comments on commit 35d70da

Please sign in to comment.