From 168b070799206d992c54d1e83189374c56ae12cc Mon Sep 17 00:00:00 2001 From: Iveta Date: Thu, 2 Nov 2023 14:09:14 -0400 Subject: [PATCH] Update GitHub Actions + Dockerfile (#726) --- .github/workflows/test-build.yml | 6 +++--- .github/workflows/update_deps.yml | 9 +++++---- Dockerfile | 4 ++-- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 0930ac62..02789d42 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -4,10 +4,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 16 - run: yarn install # - run: yarn test:jest - run: yarn build diff --git a/.github/workflows/update_deps.yml b/.github/workflows/update_deps.yml index b50cd1d8..a5b53ed2 100644 --- a/.github/workflows/update_deps.yml +++ b/.github/workflows/update_deps.yml @@ -1,8 +1,8 @@ name: Monthly dependency updates on: schedule: - # First of every month - - cron: 0 0 1 * * + # First of January, April, July, and October + - cron: 0 0 1 */3 * jobs: create_issue: @@ -12,7 +12,7 @@ jobs: issues: write steps: - name: Update dependencies - uses: imjohnbo/issue-bot@7e438653c0da13f4f79678a56bb9ecbd9dcc26ac + uses: imjohnbo/issue-bot@3bee265982b87e730cf6c8dab7f86b68c92f8ef1 with: title: "Update dependencies" body: | @@ -22,6 +22,7 @@ jobs: ``` Make sure there are no issues in the code editor, code compiles, and it runs without issues in the browser. pinned: false - close-previous: false + close-previous: true + labels: "dependencies" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Dockerfile b/Dockerfile index 9b9da81d..9cde03d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,8 @@ ENV DEBIAN_FRONTEND=noninteractive # https://create-react-app.dev/docs/advanced-configuration/ ENV INLINE_RUNTIME_CHUNK=false RUN apt-get update && apt-get install --no-install-recommends -y gpg curl git make ca-certificates apt-transport-https && \ - curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key|gpg --dearmor >/etc/apt/trusted.gpg.d/nodesource.gpg && \ - echo "deb https://deb.nodesource.com/node_16.x focal main" | tee /etc/apt/sources.list.d/nodesource.list && \ + curl -sSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key|gpg --dearmor >/etc/apt/trusted.gpg.d/nodesource-key.gpg && \ + echo "deb https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg |gpg --dearmor >/etc/apt/trusted.gpg.d/yarnpkg.gpg && \ echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \ apt-get update && apt-get install -y nodejs yarn && apt-get clean