From 4dd1dcd9306d85f370a053c568fdacccc2c08133 Mon Sep 17 00:00:00 2001 From: Tomasz Pluskiewicz Date: Wed, 10 Apr 2024 11:43:52 +0200 Subject: [PATCH 1/2] ci: update actions, add PR workflow --- .github/workflows/build.yaml | 40 ++++++++++++++++++++++++++++++++++ .github/workflows/ci.yaml | 7 ++---- .github/workflows/release.yaml | 7 ++---- 3 files changed, 44 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..e9bdca4 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,40 @@ +name: Build + +on: + push: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up NodeJS + uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Install dependencies + run: npm ci + + - name: Build the app + run: npm run build + + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up NodeJS + uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Install dependencies + run: npm ci + + - name: Run linter + run: npm run lint diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 87e5d22..b96fd6c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,19 +15,16 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up NodeJS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 - name: Install dependencies run: npm ci - - name: Run linter - run: npm run lint - - name: Build the app run: npm run build diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 79dd4b6..784397e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -13,18 +13,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18 - name: Install Dependencies run: npm ci - - name: Run linter - run: npm run lint - - name: Create Release Pull Request or Publish to npm id: changesets uses: changesets/action@v1 From d671f81d4e6ec37e44f0de18d5ea5d81f2791684 Mon Sep 17 00:00:00 2001 From: Tomasz Pluskiewicz Date: Wed, 10 Apr 2024 21:11:41 +0200 Subject: [PATCH 2/2] ci: use node 20 Co-authored-by: Ludovic Muller --- .github/workflows/build.yaml | 4 ++-- .github/workflows/ci.yaml | 2 +- .github/workflows/release.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e9bdca4..5f4278e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -14,7 +14,7 @@ jobs: - name: Set up NodeJS uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Install dependencies run: npm ci @@ -31,7 +31,7 @@ jobs: - name: Set up NodeJS uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Install dependencies run: npm ci diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b96fd6c..a515cbb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,7 +20,7 @@ jobs: - name: Set up NodeJS uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Install dependencies run: npm ci diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 784397e..9193a85 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,7 +17,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Install Dependencies run: npm ci