Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(actions): configure actions to node v14 #139

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,10 @@ jobs:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
- uses: actions/setup-node@v3
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
node-version: 16
cache: 'yarn'

- name: Install dependencies
run: yarn
Expand Down
16 changes: 3 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,15 @@ jobs:
release:
if: "!contains(github.event.head_commit.message, '[skip:ci]')"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
- uses: actions/setup-node@v3
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
node-version: 16
cache: 'yarn'

- name: Install dependencies
run: yarn
Expand Down
4 changes: 2 additions & 2 deletions prod.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-slim AS builder
FROM node:16-slim AS builder

# Public variables are only required at build time.
ARG NEXT_PUBLIC_GIT_BRANCH
Expand Down Expand Up @@ -26,7 +26,7 @@ COPY . .
RUN yarn build
RUN yarn --production

FROM node:14-slim
FROM node:16-slim

# https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
RUN apt update \
Expand Down
Loading