From 7d9345cdf71fff82af710e9a2d8d25da32e0b200 Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Mon, 12 Oct 2026 17:37:58 +0100 Subject: [PATCH] Build dist and attach it to releases Closes #19 --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..400f1ed --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: Release + +on: + release: + types: [published] + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 24 + cache: npm + - run: npm ci + - run: npm run test:build + # Same folders `npm run copy` puts into node-red's editor-client/src + - name: Package output + working-directory: output + run: zip -r "../nr-monaco-${{ github.event.release.tag_name }}.zip" monaco/dist types + - name: Attach to release + run: gh release upload "${{ github.event.release.tag_name }}" "nr-monaco-${{ github.event.release.tag_name }}.zip" + env: + GH_TOKEN: ${{ github.token }}