From 52c12e4ba4d92d6b675179f63ab374dd117dfb8f Mon Sep 17 00:00:00 2001 From: Nemo Date: Sat, 16 Apr 2022 18:37:13 +0530 Subject: [PATCH] Fix auto-publishing --- .github/workflows/update.yml | 1 + README.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 75897eb..5a4dccf 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -34,6 +34,7 @@ jobs: registry-url: 'https://npm.pkg.github.com' - name: NPM Publish run: | + npm install npm test npm version "v${{ steps.current-time.outputs.formattedTime }}" git push origin --tags diff --git a/README.md b/README.md index 981a687..27bc160 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,10 @@ Install via package.json: ## usage -This is just the raw data files, see [which-electron][we] for a usable package. The `lookup.json` file is published as the `electron-fingerprints` package on NPM. Programmatic usage is still possible: +This is just the raw data files, see [which-electron][we] for a usable package. The `lookup.json` file is published as the `@captn3m0/electron-fingerprints` package on the GitHub NPM Package Registry. Programmatic usage is still possible: ```javascript -const lookup = require("electron-fingerprints"); +const lookup = require("@captn3m0/electron-fingerprints"); // baf786083f482c1f035e50e105b5f7475af1e00b = sha1(ffmpeg.dll) lookup["win32-x64"]["baf786083f482c1f035e50e105b5f7475af1e00b"]; // ["v1.4.3", "v1.4.4", "v1.4.5"]