Skip to content

Commit

Permalink
fix: GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed Apr 20, 2020
1 parent be142b7 commit 40fe150
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Expand Up @@ -24,23 +24,25 @@ jobs:
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: npm install
- name: Install dependencies
run: |
npm ci --ignore-scripts
- name: update tries
- name: Update tries
run: |
npm run update:tries
- name: test
- name: Test
run: |
npm test
- name: semantic-release
env:
CI: true
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm install @semantic-release/changelog @semantic-release/git --ignore-scripts --no-save
npx semantic-release
- name: Coveralls
uses: coverallsapp/github-action@v1
- name: Save test coverage
uses: coverallsapp/github-action@v1.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
10 changes: 4 additions & 6 deletions .github/workflows/test.yml
Expand Up @@ -23,17 +23,15 @@ jobs:
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: npm install
- name: Install dependencies
run: |
npm ci --ignore-scripts
env:
CI: true
- name: npm test
- name: Test
run: |
npm test
env:
CI: true
- name: Coveralls
uses: coverallsapp/github-action@v1
- name: Save test coverage
uses: coverallsapp/github-action@v1.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 40fe150

Please sign in to comment.