Skip to content

Commit

Permalink
ci(gitlab): test semantic-release back to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Dec 5, 2020
1 parent c9e4a8c commit 0ead7f1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
40 changes: 23 additions & 17 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# Define stages and global variables
###############################################################################
stages:
# - *stage_lint
- *stage_lint
- *stage_test
- *stage_release
variables:
Expand All @@ -39,21 +39,21 @@ variables:
# script:
# - 'yamllint -s .'

# commitlint:
# stage: *stage_lint
# image: *image_node
# before_script: *before_script_image_node
# script:
# # Add `upstream` remote to get access to `upstream/master`
# - 'git remote add upstream
# https://gitlab.com/myii/openvpn-formula.git'
# - 'git fetch --all'
# # Install and run `commitlint`
# - 'npm install -D @commitlint/config-conventional
# @commitlint/cli'
# - 'npx commitlint --from "$(git merge-base upstream/master HEAD)"
# --to "${CI_COMMIT_SHA}"
# --verbose'
commitlint:
stage: *stage_lint
image: *image_node
before_script: *before_script_image_node
script:
# Add `upstream` remote to get access to `upstream/master`
- 'git remote add upstream
https://gitlab.com/myii/openvpn-formula.git'
- 'git fetch --all'
# Install and run `commitlint`
- 'npm install -D @commitlint/config-conventional
@commitlint/cli'
- 'npx commitlint --from "$(git merge-base upstream/master HEAD)"
--to "${CI_COMMIT_SHA}"
--verbose'

###############################################################################
# Define `test` template
Expand Down Expand Up @@ -199,8 +199,14 @@ semantic-release:
image: *image_node
before_script: *before_script_image_node
script:
# # Update `AUTHORS.md`
# - export MAINTAINER_TOKEN=${GH_TOKEN}
# - go get github.com/myii/maintainer
# - maintainer contributor

# Install all dependencies required for `semantic-release`
- 'npm install -g semantic-release
@semantic-release/gitlab
@semantic-release/changelog
@semantic-release/exec
@semantic-release/git'
- 'semantic-release'
2 changes: 2 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module.exports = {
branch: 'master',
// branches: ['master', 'ci/test-gitlab-ci'],
repositoryUrl: 'https://github.com/myii/openvpn-formula',
plugins: [
['@semantic-release/commit-analyzer', {
preset: 'angular',
Expand Down

0 comments on commit 0ead7f1

Please sign in to comment.