From 91710aef4a93ea098c42aa9aa4d96807cf1967da Mon Sep 17 00:00:00 2001 From: Adam Lusted Date: Tue, 23 Feb 2021 20:15:38 +1100 Subject: [PATCH] Added actions --- .github/workflows/publish.yml | 14 ++++++++++++++ package.json | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..cc00c35 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,14 @@ +on: push + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 10 + - run: npm install + - uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index be7b81e..1204ac3 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "cryptolist", - "version": "1.1.1", + "version": "1.1.2", "description": "Lists the top ten Crypto currency prices.", "main": "index.js", "scripts": { "start": "node index.js", - "test": "echo \"Error: no test specified\" && exit 1", + "test": "echo \"Error: no test specified\"", "snyk-protect": "snyk protect", "prepublish": "npm run snyk-protect" },