Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

Get rid of Process.env #502

Open
wants to merge 6 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
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Npm cache
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('**/package.json') }}
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 12.13.1
- run: npm install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Cache node modules
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: /home/runner/.npm
key: npm-cache-${{ hashFiles('**/package.json') }}
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 12.13.1
- run: npm install
- run: npm run build
- name: Upload pages
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: pages
path: public
4 changes: 2 additions & 2 deletions .github/workflows/publish-beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Npm cache
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('**/package.json') }}
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 12.13.1
- run: npm install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Npm cache
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('**/package.json') }}
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 12.13.1
- run: npm install
Expand Down
2 changes: 1 addition & 1 deletion .storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path');
const sass = require('sass');
const webpack = require('webpack');

const static_url = process.env.STATIC_URL || 'http://localhost:9001';
const static_url = 'http://localhost:9001';

module.exports = {
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "7.0.3",
"version": "7.1.0-beta.3",
"name": "@ultimaker/react-web-components",
"description": "Ultimaker's unified react component and style library for front-end web",
"main": "./dist/index.js",
Expand Down
4 changes: 1 addition & 3 deletions src/stories/layout_resource_grid.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ import SubResourceList from '../components/sub_resource_list';

const stories = storiesOf('Layout', module);

const logobot = process.env.NODE_ENV === 'development'
? '../images/logobot-placeholder-dark.svg'
: './images/logobot-placeholder-dark.svg';
const logobot = './images/logobot-placeholder-dark.svg';

stories.addDecorator(withKnobs);

Expand Down
Loading