From a383b634101244ee07dfdb539c2926658311fa2f Mon Sep 17 00:00:00 2001 From: iSplasher Date: Mon, 25 Sep 2023 04:38:17 +0200 Subject: [PATCH] update; --- .github/workflows/release.yml | 6 +++++- package.json | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4568e00..7fa91a7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -108,7 +108,6 @@ jobs: args: --verbose --latest --strip header env: OUTPUT: "CHANGELOG.md" - - name: Create Release id: create_release @@ -122,3 +121,8 @@ jobs: fail_on_unmatched_files: true files: | isomorphic-logger.zip + + - name: Publish to NPM + uses: JS-DevTools/npm-publish@v2 + with: + token: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 219b7c8..a594dfa 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,9 @@ "bugs": { "url": "https://github.com/iSplasher/isomorphic-logger/issues" }, - "main": "dist/index.js", "homepage": "https://github.com/iSplasher/isomorphic-logger", + "main": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { "dev": "cross-env NODE_ENV=development tsup --watch", "types": "tsc",