Skip to content

Commit

Permalink
fix(deps): use semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Apr 17, 2020
1 parent 0e16aa5 commit 9c90153
Show file tree
Hide file tree
Showing 5 changed files with 6,758 additions and 124 deletions.
41 changes: 32 additions & 9 deletions .github/workflows/test.yml
Expand Up @@ -20,18 +20,41 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm test
run: |
npm ci
npm test
- name: Install Dependencies
run: npm ci
- name: Run Tests 👩🏽‍💻
run: npm test

Lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: npm lint
run: |
npm ci
npm run lint
- name: Install Dependencies
run: npm ci
- name: Lint ✨
run: npm run lint

Release:
needs: [Test, Lint]
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Dependencies
run: npm ci
- name: Release 🎉
uses: cycjimmy/semantic-release-action@v2
id: semantic_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish coffeelint.github.io
if: steps.semantic_release.outputs.new_release_published == 'true'
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.GH_TOKEN }}
repository: coffeelint/coffeelint.github.io
event-type: compile
client-payload: '{"coffeelint_version": "${{ steps.semantic_release.outputs.new_release_version }}"}'

0 comments on commit 9c90153

Please sign in to comment.