From 1e3cedba6f02d0be0275ed1add8455983c1cc1fb Mon Sep 17 00:00:00 2001 From: n1lsqn Date: Sun, 12 Nov 2023 11:34:16 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20ci=E8=A8=AD=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..5bea15d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout master branch + uses: actions/checkout@v3 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: 18.13.0 + + - name: Cache npm directory + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} + restore-keys: ${{ runner.os }}-npm- + + - name: Install node modules + run: npm ci + + - name: Build ai + run: npm run build \ No newline at end of file