Skip to content
Draft
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
5 changes: 5 additions & 0 deletions .github/workflows/auto-close-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ permissions:
issues: write
pull-requests: read

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: false

jobs:
close_issues:
name: Close linked issues
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ on:
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: ubuntu-latest

steps:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ on:
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
name: Test
strategy:
matrix:
include:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/continuous-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,25 @@ permissions:
pull-requests: write
issues: write

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: false

jobs:
publish:
name: Publish
if: github.repository == 'processing/p5.js'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22
package-manager-cache: false

- name: Install dependencies
run: npm ci
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/contributors-png.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ on:
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Update contributors.png
if: github.ref == 'refs/heads/main' && github.repository == 'processing/p5.js'
runs-on: ubuntu-latest
steps:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/git-hooks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Git Hooks"

on:
workflow_dispatch:
push:
branches:
- main
pull_request: ~

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
run-prek:
name: prek run --all-files
runs-on: ubuntu-24.04
timeout-minutes: 1

steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Run prek
uses: j178/prek-action@4e14d07f9231acabce116ccfca13b13dd9755ece # v3.0.0
6 changes: 6 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ on:
permissions:
contents: read
issues: write

concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number || github.ref }}
cancel-in-progress: false

jobs:
triage:
name: Triage issues
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@98b5412841f6c4b0b3d9c29d53c13fad16bd7de2 # v3.2
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-workflow-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ name: New p5.js v1 release
permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

on:
push:
tags:
Expand All @@ -24,6 +28,8 @@ jobs:
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22 # Keep at 22 purposefully for v1
package-manager-cache: false

- name: Check prerelease
id: semver
shell: bash
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-workflow-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ name: New p5.js 2.x release
permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

on:
push:
tags:
Expand All @@ -24,6 +28,8 @@ jobs:
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22
package-manager-cache: false

- name: Check prerelease
id: semver
shell: bash
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/stewards-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ permissions:
contents: write
pull-requests: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Update steward table
if: github.ref == 'refs/heads/main' && github.repository == 'processing/p5.js'
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 4 additions & 0 deletions .github/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
rules:
# Temp disabled to satisfy CI. Can be revisited later.
secrets-outside-env:
disable: true
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.29.0
hooks:
- id: zizmor
args: ["--no-progress", "--persona=auditor"]