Skip to content

Commit

Permalink
Create node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WietseWind authored Jun 6, 2024
1 parent ddaeb00 commit a790634
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a790634

Please sign in to comment.