Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Remove travis.yml and update postcommit
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Swann committed Jun 29, 2021
1 parent 87c7d65 commit 00093d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: NPM_Publish
on:
push:
tags:
- v*.*.*
on: [push]
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -20,7 +17,9 @@ jobs:
- run: npm test

publish:
needs: test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
Expand All @@ -33,7 +32,9 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}

create-release:
needs: test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@master
- uses: Roang-zero1/github-create-release-action@master
Expand Down
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"hof-build": "./bin/hof-build"
},
"scripts": {
"test": "eslint . && eslint bin/hof-build",
"test": "eslint . --config ./node_modules/eslint-config-hof/default.js && eslint --config ./node_modules/eslint-config-hof/default.js bin/hof-build",
"postversion": "git push && git push --tags"
},
"repository": {
Expand Down

0 comments on commit 00093d7

Please sign in to comment.