From 4671d2b99ba59ffdda026c56ba08e3139d87f60e Mon Sep 17 00:00:00 2001 From: Tomasz Pluskiewicz Date: Thu, 7 Sep 2023 09:43:01 +0200 Subject: [PATCH] ci: update workflows --- .github/workflows/build.yml | 26 +++++++++++++------------- .github/workflows/release.yml | 10 +++++----- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 28aa887..2f27813 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,33 +6,33 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2.1.2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: 13 - - run: yarn install --ci + node-version: 18 + - run: npm ci - run: yarn lint build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2.1.2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: 13 - - run: yarn install --ci + node-version: 18 + - run: npm ci - run: yarn tsc --noEmit test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2.1.2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: 14 - - run: yarn install --ci + node-version: 18 + - run: npm ci - run: yarn test - name: Codecov - uses: codecov/codecov-action@v1.0.5 + uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b3777cd..59c518e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,22 +11,22 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v3 with: # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v2.1.2 + uses: actions/setup-node@v3 with: - node-version: 13 + node-version: 18 - name: Install Dependencies - run: yarn + run: npm ci - name: Create Release Pull Request or Publish to npm id: changesets - uses: changesets/action@master + uses: changesets/action@v1 with: # This expects you to have a script called release which does a build for your packages and calls changeset publish publish: yarn release