Skip to content

Commit

Permalink
Merge pull request #656 from apiaryio/chore/semantic-release
Browse files Browse the repository at this point in the history
chore: add "semantic-release" to GitHub actions
  • Loading branch information
artem-zakharchenko authored Dec 9, 2021
2 parents 69495b8 + 1733db3 commit 100234e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,14 @@ jobs:
- run: npm run lint
- run: npm run build
- run: npm test

release:
runs-on: [ubuntu-latest]
needs: build
if: success() && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- name: Semantic release
run: npx semantic-release
env:
NPM_TOKEN: ${{ secrets.RELEASE_NPM_TOKEN }}
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
"lint": "eslint lib/**/*.js test/**/*.js",
"test": "npm run test:unit && npm run test:features",
"test:unit": "mocha \"test/**/*.test.js\"",
"test:features": "node scripts/cucumber.js",
"ci:lint": "npm run lint",
"ci:test": "npm test",
"ci:build": "npm run build",
"ci:release": "semantic-release"
"test:features": "node scripts/cucumber.js"
},
"husky": {
"hooks": {
Expand Down

0 comments on commit 100234e

Please sign in to comment.