From 846dd1dc9059c5246dd3eb5ba9a9bd318fb16797 Mon Sep 17 00:00:00 2001 From: Tomislav Markovski Date: Fri, 16 Feb 2024 15:29:01 -0500 Subject: [PATCH 1/2] Upload standalone file to GH release assets --- .github/workflows/upload-release-assets.yml | 28 +++++++++++++++++++++ build/package-lock.json | 2 +- package-lock.json | 4 +-- package.json | 5 ++++ 4 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/upload-release-assets.yml diff --git a/.github/workflows/upload-release-assets.yml b/.github/workflows/upload-release-assets.yml new file mode 100644 index 0000000..b3b5984 --- /dev/null +++ b/.github/workflows/upload-release-assets.yml @@ -0,0 +1,28 @@ +name: Upload standalone file to GitHub Releases +on: + release: + types: [created] +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + id-token: write + steps: + - uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4 + - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4 + with: + node-version: 20 + registry-url: 'https://registry.npmjs.org' + cache: npm + - run: | + npm install -g npm + npm ci + npm run build + cd build + npm ci + npm run build + gh release upload ${{ github.event.release.tag_name }} noble-ciphers.js + env: + GH_TOKEN: ${{ github.token }} + diff --git a/build/package-lock.json b/build/package-lock.json index 55af7a3..e2034db 100644 --- a/build/package-lock.json +++ b/build/package-lock.json @@ -15,7 +15,7 @@ }, "..": { "name": "@noble/ciphers", - "version": "0.4.1", + "version": "0.5.1", "dev": true, "license": "MIT", "devDependencies": { diff --git a/package-lock.json b/package-lock.json index 6a6b48b..8b89578 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@noble/ciphers", - "version": "0.4.1", + "version": "0.5.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@noble/ciphers", - "version": "0.4.1", + "version": "0.5.1", "license": "MIT", "devDependencies": { "@scure/base": "1.1.3", diff --git a/package.json b/package.json index 85b51b3..dd2b341 100644 --- a/package.json +++ b/package.json @@ -102,6 +102,11 @@ "types": "./webcrypto.d.ts", "import": "./esm/webcrypto.js", "default": "./webcrypto.js" + }, + "./webcrypto/utils": { + "types": "./webcrypto.d.ts", + "import": "./esm/webcrypto.js", + "default": "./webcrypto.js" } }, "browser": { From c35fe094cd5cd61cbddd857af62e88214d18ca12 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Fri, 16 Feb 2024 22:25:52 +0100 Subject: [PATCH 2/2] Remove webcrypto utils --- package.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/package.json b/package.json index dd2b341..85b51b3 100644 --- a/package.json +++ b/package.json @@ -102,11 +102,6 @@ "types": "./webcrypto.d.ts", "import": "./esm/webcrypto.js", "default": "./webcrypto.js" - }, - "./webcrypto/utils": { - "types": "./webcrypto.d.ts", - "import": "./esm/webcrypto.js", - "default": "./webcrypto.js" } }, "browser": {