From 6c3138e139a67100dfb9858a217237bdbf4fd4d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Akg=C3=BCn?= Date: Mon, 1 Jul 2024 11:56:50 +0100 Subject: [PATCH] Create build.yml --- .github/build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/build.yml diff --git a/.github/build.yml b/.github/build.yml new file mode 100644 index 0000000..ad6c61e --- /dev/null +++ b/.github/build.yml @@ -0,0 +1,28 @@ +name: Testing npm build + +on: + push: + branches: + - main + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 21 + cache: npm + + - name: Build + run: | + npm ci + npm run build + # creates a .nojekyll file in the out directory to tell GitHub Pages not to treat the site as a Jekyll project. + touch out/.nojekyll