Skip to content

Commit

Permalink
Upload standalone file to GH release assets (#30)
Browse files Browse the repository at this point in the history
* Upload standalone file to GH release assets

* Remove webcrypto utils

---------

Co-authored-by: Paul Miller <[email protected]>
  • Loading branch information
tmarkovski and paulmillr committed Feb 16, 2024
1 parent d771ec0 commit a870d6f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/upload-release-assets.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion build/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a870d6f

Please sign in to comment.