From 279c01595b06f4cccb716cfb35cc9a239dab1576 Mon Sep 17 00:00:00 2001 From: Danny Hieber Date: Sun, 29 Sep 2019 13:08:01 -0500 Subject: [PATCH] FIX: npm publish workflow --- .github/workflows/publish.yml | 5 +++++ package.json | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 482eefb..5d9610a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,10 +16,15 @@ jobs: - name: install Node.js uses: actions/setup-node@master + with: + registry-url: https://registry.npmjs.org/ - name: install dependencies run: npm ci + - name: run tests + run: npm test + - name: publish run: npm publish env: diff --git a/package.json b/package.json index 0457913..7890b03 100644 --- a/package.json +++ b/package.json @@ -26,8 +26,7 @@ "dlx-conc": "./concordance.js" }, "scripts": { - "test": "node concordance.js -d test -o test/concordance.tsv -k little", - "prepublish": "npm test" + "test": "node concordance.js -d test -o test/concordance.tsv -k little" }, "engines": { "node": ">=12.0"