Skip to content

Commit

Permalink
fix: change lts/* node version to 20.x to avoid major upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
truemiller committed Sep 16, 2024
1 parent 9acd4e3 commit 0366968
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 76 deletions.
49 changes: 24 additions & 25 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,31 @@ name: Backend
on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# Node.js (for package scripts)
- uses: actions/setup-node@v4
with:
node-version: lts/*

# Python
- uses: actions/setup-python@v4
with:
python-version: "3.10"
# Node.js (for package scripts)
- uses: actions/setup-node@v4
with:
node-version: "20.x"

- uses: snok/install-poetry@v1
with:
version: "1.7.1"
virtualenvs-create: true
virtualenvs-in-project: false
virtualenvs-path: ~/my-custom-path
installer-parallel: true
# Python
- uses: actions/setup-python@v4
with:
python-version: "3.10"

# Install backend dependencies
- run: yarn install:backend
- uses: snok/install-poetry@v1
with:
version: "1.7.1"
virtualenvs-create: true
virtualenvs-in-project: false
virtualenvs-path: ~/my-custom-path
installer-parallel: true

# Run backend
# - run: yarn dev:backend
# Install backend dependencies
- run: yarn install:backend

# Run backend
# - run: yarn dev:backend
6 changes: 3 additions & 3 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version: "20.x"

# Install dependencies
- name: Install dependencies
run: yarn install:frontend
Expand All @@ -24,4 +24,4 @@ jobs:
run: yarn lint:frontend
# Test
# - name: Test
# run: yarn test:frontend
# run: yarn test:frontend
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: lts/20
node-version: "20.x"

# Download the appropriate architecture artifact
- name: Download Pearl binary for architecture
Expand Down
92 changes: 46 additions & 46 deletions .github/workflows/release_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,54 +2,54 @@ name: Release for Windows

on:
push:
tags:
- 'v*.*.*'
tags:
- "v*.*.*"

jobs:
build-windows:
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.10'
build-windows:
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v4
with:
node-version: lts/*
- uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: '1.8.3'
virtualenvs-create: true
virtualenvs-in-project: false
virtualenvs-path: ~/my-custom-path
installer-parallel: true
- name: Install dependencies
run: poetry install
- uses: actions/setup-node@v4
with:
node-version: "20.x"

- name: install node deps
run: yarn install-deps

- name: set env vars to prod.env
env:
NODE_ENV: production
DEV_RPC: https://rpc-gate.autonolas.tech/gnosis-rpc/
IS_STAGING: ${{ github.ref != 'refs/heads/main' && 'true' || 'false' }}
FORK_URL: https://rpc-gate.autonolas.tech/gnosis-rpc/
GH_TOKEN: ${{ secrets.github_token}}
run: |
echo NODE_ENV=$NODE_ENV >> prod.env
echo DEV_RPC=$DEV_RPC >> prod.env
echo IS_STAGING=$IS_STAGING >> prod.env
echo FORK_URL=$FORK_URL >> prod.env
cat prod.env
echo GH_TOKEN=$GH_TOKEN >> prod.env
- run: rm -rf /dist
- name: "Build, notarize, publish"
run: make build
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: "1.8.3"
virtualenvs-create: true
virtualenvs-in-project: false
virtualenvs-path: ~/my-custom-path
installer-parallel: true
- name: Install dependencies
run: poetry install

- name: install node deps
run: yarn install-deps

- name: set env vars to prod.env
env:
NODE_ENV: production
DEV_RPC: https://rpc-gate.autonolas.tech/gnosis-rpc/
IS_STAGING: ${{ github.ref != 'refs/heads/main' && 'true' || 'false' }}
FORK_URL: https://rpc-gate.autonolas.tech/gnosis-rpc/
GH_TOKEN: ${{ secrets.github_token}}
run: |
echo NODE_ENV=$NODE_ENV >> prod.env
echo DEV_RPC=$DEV_RPC >> prod.env
echo IS_STAGING=$IS_STAGING >> prod.env
echo FORK_URL=$FORK_URL >> prod.env
cat prod.env
echo GH_TOKEN=$GH_TOKEN >> prod.env
- run: rm -rf /dist
- name: "Build, notarize, publish"
run: make build
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/*
"20.x"

0 comments on commit 0366968

Please sign in to comment.