Skip to content

Unlock custom brushes, natural fill effects and intuitive hatching in p5.js

updated publish action

acamposuribed5642f49f63e
diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml
index aed6a69..3786084 100644
--- a/.github/workflows/publish-npm.yml
+++ b/.github/workflows/publish-npm.yml
@@ -8,11 +8,12 @@ on:
permissions:
contents: read
- id-token: write
+ id-token: write # required for OIDC trusted publisher authentication
jobs:
publish:
runs-on: ubuntu-latest
+ environment: npm-publish # must match the environment name set in npmjs.com trusted publishers
steps:
- uses: actions/checkout@v4
@@ -41,6 +42,5 @@ jobs:
run: npx rollup --config
- name: Publish package
- run: npm publish --provenance
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+ run: npm publish --provenance --access public
+ # No NODE_AUTH_TOKEN needed — npm authenticates via OIDC trusted publisher