Skip to content

Commit

Permalink
Merge pull request #21 from MashupMill/semantic-release
Browse files Browse the repository at this point in the history
gonna try out semantic-release
  • Loading branch information
ammmze authored Feb 28, 2021
2 parents 07c592b + eac760c commit 75ddef1
Show file tree
Hide file tree
Showing 5 changed files with 4,205 additions and 513 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/build.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Pull Request
on:
pull_request:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: yarn install --ignore-engines
- name: Lint
run: yarn lint
- name: Unit Test
run: yarn test:coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Release (Dry Run)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release --dry-run
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: yarn install --ignore-engines
- name: Lint
run: yarn lint
- name: Unit Test
run: yarn test:coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sync-pom-version-to-package",
"version": "1.6.0",
"version": "0.0.0-development",
"description": "Sync's the maven project version to the package.json",
"main": "index.js",
"author": "Branden Cash",
Expand All @@ -17,7 +17,7 @@
],
"repository": {
"type": "git",
"url": "git://github.com/MashupMill/sync-pom-version-to-package.git"
"url": "https://github.com/MashupMill/sync-pom-version-to-package.git"
},
"bugs": {
"url": "https://github.com/MashupMill/sync-pom-version-to-package/issues"
Expand All @@ -30,15 +30,17 @@
"lint:fix": "eslint src --fix",
"test": "mocha",
"test:coverage": "nyc --reporter=html --reporter=text --reporter=lcov npm test",
"test:watch": "mocha --watch"
"test:watch": "mocha --watch",
"semantic-release": "semantic-release"
},
"devDependencies": {
"chai": "^4.2.0",
"coveralls": "^3.0.11",
"eslint": "^6.8.0",
"mocha": "^7.1.1",
"mocha-lcov-reporter": "^1.3.0",
"nyc": "^15.0.0"
"nyc": "^15.0.0",
"semantic-release": "^17.4.0"
},
"dependencies": {
"argparse": "^1.0.10",
Expand Down
Loading

0 comments on commit 75ddef1

Please sign in to comment.