From 8c44ba5caf305d4463549cfd40b19fb6c7eb744f Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Tue, 27 Feb 2024 22:34:58 +0000 Subject: [PATCH] ci: add upload-release action --- .github/workflows/upload-release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/upload-release.yml diff --git a/.github/workflows/upload-release.yml b/.github/workflows/upload-release.yml new file mode 100644 index 0000000..c713b8e --- /dev/null +++ b/.github/workflows/upload-release.yml @@ -0,0 +1,27 @@ +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-hashes.js + env: + GH_TOKEN: ${{ github.token }}