Skip to content

Commit 4b98cd5

Browse files
authored
Merge branch '2.0' into shader-translation-glsl-to-p5-strands-2.0
2 parents 2e31ee3 + 4ee9769 commit 4b98cd5

File tree

29 files changed

+3653
-1128
lines changed

29 files changed

+3653
-1128
lines changed

.github/workflows/beta_deploy.yml

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy beta to Netlify
1+
name: Deploy beta to Cloudflare
22

33
on:
44
# Trigger the workflow every time you push to the `main` branch
@@ -18,25 +18,19 @@ jobs:
1818
build-deploy:
1919
runs-on: ubuntu-latest
2020
steps:
21-
2221
- name: Checkout your repository using git
2322
uses: actions/checkout@v4
24-
25-
- name: Install, build, and upload your site output
26-
env:
27-
NODE_OPTIONS: "--max_old_space_size=4096"
28-
uses: withastro/action@v2
29-
30-
- name: Deploy to Netlify
31-
uses: nwtgck/actions-netlify@v3.0
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
3225
with:
33-
publish-dir: './dist'
34-
production-branch: "2.0"
35-
github-token: ${{ secrets.GITHUB_TOKEN }}
36-
deploy-message: "Deploy from GitHub Actions"
37-
enable-pull-request-comment: false
38-
enable-commit-comment: false
39-
overwrites-pull-request-comment: false
40-
env:
41-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
42-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
26+
node-version: '22'
27+
- name: Install dependencies
28+
run: npm ci
29+
- name: Build website
30+
run: npm run build
31+
- name: Deploy to Cloudflare Workers
32+
uses: cloudflare/wrangler-action@v3
33+
with:
34+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
35+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
36+
environment: beta

.github/workflows/deploy.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,15 @@ permissions:
1515
id-token: write
1616

1717
jobs:
18-
build:
18+
build-deploy:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout your repository using git
2222
uses: actions/checkout@v4
23-
- name: Install, build, and upload your site output
24-
env:
25-
NODE_OPTIONS: "--max_old_space_size=4096"
26-
uses: withastro/action@v2
27-
28-
deploy:
29-
needs: build
30-
runs-on: ubuntu-latest
31-
environment:
32-
name: github-pages
33-
url: ${{ steps.deployment.outputs.page_url }}
34-
steps:
35-
- name: Deploy to GitHub Pages
36-
id: deployment
37-
uses: actions/deploy-pages@v4
23+
- name: Build website
24+
run: npm run build
25+
- name: Deploy to Cloudflare Workers
26+
uses: cloudflare/wrangler-action@v3
27+
with:
28+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
29+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

.github/workflows/test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
steps:
1313
- name: Checkout your repository using git
1414
uses: actions/checkout@v4
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '22'
1519
- name: Install dependencies
1620
run: npm ci
1721
- name: Test
@@ -21,6 +25,10 @@ jobs:
2125
steps:
2226
- name: Checkout your repository using git
2327
uses: actions/checkout@v4
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: '22'
2432
- name: Install dependencies
2533
run: npm ci
2634
- name: Lint
@@ -30,6 +38,10 @@ jobs:
3038
steps:
3139
- name: Checkout your repository using git
3240
uses: actions/checkout@v4
41+
- name: Setup Node.js
42+
uses: actions/setup-node@v4
43+
with:
44+
node-version: '22'
3345
- name: Install dependencies
3446
run: npm ci
3547
- name: Typecheck
@@ -39,6 +51,10 @@ jobs:
3951
steps:
4052
- name: Checkout your repository using git
4153
uses: actions/checkout@v4
54+
- name: Setup Node.js
55+
uses: actions/setup-node@v4
56+
with:
57+
node-version: '22'
4258
- name: Install dependencies
4359
run: npm ci
4460
- name: Build

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ translator/
2929
public/p5.min.js
3030

3131
# optional local preferences for vscode
32-
local.code-workspace
32+
local.code-workspace
33+
.zed

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Force npm to fail (not just warn) if the node.js version in "engines" isn't met
2+
engine-strict=true

docs/technical_overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Setup
66

7-
1. Make sure you have [node and npm installed on your machine](https://nodejs.org/en/learn/getting-started/how-to-install-nodejs).
7+
1. Make sure you have [node (at least version 22) and npm installed on your machine](https://nodejs.org/en/learn/getting-started/how-to-install-nodejs).
88
2. Clone this repo by typing git clone https://github.com/processing/p5.js-website/ in your terminal. (You can also use [GitHub Desktop](https://desktop.github.com/)).
99
3. Then install the project's dependencies with:
1010

0 commit comments

Comments
 (0)