From 2797835eda2ad7c96411c85bdca2a3403e53f7eb Mon Sep 17 00:00:00 2001 From: Alexander Guryanov Date: Sat, 18 Nov 2023 23:13:28 +0300 Subject: [PATCH] Add build action --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ README.md | 1 - 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..6728ef83 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Build + +on: + push: + branches: [ 8.xx ] + pull_request: + branches: [ 8.xx ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + + steps: + - uses: actions/checkout@v3 + - name: build js-dos + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: npm install -g yarn + - run: yarn + - run: yarn run eslint . --ext ts,tsx --max-warnings 0 + - run: mkdir -p public/emulators && cp -rv node_modules/emulators/dist/* public/emulators + - run: NODE_ENV=production yarn run gulp + - name: upload + uses: actions/upload-artifact@v3.0.0 + with: + name: 'dist' + path: 'dist' \ No newline at end of file diff --git a/README.md b/README.md index 7f068105..f6185279 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ You need to put `emulators@beta` into `public/emulators`. - ``` cp -rv node_modules/emulators/dist/* public/emulators ```