mirror of
https://github.com/barthuijgen/factorio-sites.git
synced 2024-11-20 18:15:37 +02:00
feat: upgrade to build in caching in actions and upgrade to node 18
This commit is contained in:
parent
f445b9933e
commit
37d32bdfc8
15
.github/workflows/deploy_dev.yml
vendored
15
.github/workflows/deploy_dev.yml
vendored
@ -13,18 +13,9 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 14
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
- uses: actions/cache@v3
|
||||
id: yarn-cache
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn
|
||||
node-version: 18
|
||||
cache: "yarn"
|
||||
- run: yarn --prefer-offline
|
||||
- run: yarn nx build blueprints
|
||||
env:
|
||||
CF_WEB_ANALYTICS: 6c563c1e5db141129a5fc95d5c459722
|
||||
|
15
.github/workflows/deploy_prd.yml
vendored
15
.github/workflows/deploy_prd.yml
vendored
@ -13,18 +13,9 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 14
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
- uses: actions/cache@v3
|
||||
id: yarn-cache
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- run: yarn
|
||||
node-version: 18
|
||||
cache: "yarn"
|
||||
- run: yarn --prefer-offline
|
||||
- run: yarn nx build blueprints
|
||||
env:
|
||||
PUBLIC_URL: https://factorio-blueprints-assets.storage.googleapis.com/public
|
||||
|
17
.github/workflows/validate.yml
vendored
17
.github/workflows/validate.yml
vendored
@ -6,20 +6,11 @@ jobs:
|
||||
validate:
|
||||
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.x"
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
- uses: actions/cache@v1
|
||||
id: yarn-cache
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
node-version: 18
|
||||
cache: "yarn"
|
||||
- run: yarn --prefer-offline
|
||||
- run: yarn nx run-many --all --target=lint
|
||||
- run: yarn nx run-many --all --target=test "--ci"
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM node:14-slim as builder
|
||||
FROM node:18-slim as builder
|
||||
|
||||
RUN apt-get -qy update && apt-get -qy install openssl
|
||||
|
||||
@ -15,7 +15,7 @@ COPY . .
|
||||
|
||||
RUN yarn nx build blueprints --prod
|
||||
|
||||
FROM node:14-slim
|
||||
FROM node:18-slim
|
||||
|
||||
RUN apt-get -qy update && apt-get -qy install openssl
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM node:14-slim
|
||||
FROM node:18-slim
|
||||
|
||||
RUN apt-get -qy update && apt-get -qy install openssl
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user