From a790634d894dbbb7d739a4facac2630617915d2f Mon Sep 17 00:00:00 2001 From: Wietse Wind Date: Thu, 6 Jun 2024 16:17:36 +0200 Subject: [PATCH] Create node.js.yml --- .github/workflows/node.js.yml | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..a34ef42 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,49 @@ +name: Build qjsc.wasm Builder image and WASM Binary using Docker + +on: + push: + branches: [ "main", "dev" ] + pull_request: + branches: [ "main", "dev" ] + schedule: + - cron: "1 0 1 * *" # minute hour dayofmonth month dayofweek, at least once a month + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm install + - run: NODE_OPTIONS=--openssl-legacy-provider VUE_APP_WSS_ENDPOINT=/ws npm run build + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: dist + path: dist + + - name: Release + uses: softprops/action-gh-release@v2 + with: + prerelease: false + draft: false + make_latest: true + name: autorelease + tag_name: autorelease + files: | + dist/* + fail_on_unmatched_files: true