Commit Graph
12 Commits
Author SHA1 Message Date
Daniel Sogl ef358238c2 ci: update release-please-action to v5
The only breaking change in v5.0.0 is the move to the node 24 runtime; inputs,
outputs and the manifest/config format are unchanged. Kept as its own commit
since this action drives the release flow and is the one worth reverting alone
if anything misbehaves.
2026-07-27 21:35:14 +02:00
Daniel Sogl 1789d08183 ci: update first-party actions to latest majors
checkout v4.3.1 -> v7.0.1, setup-node v4.4.0 -> v7.0.0, stale v9.1.0 -> v10.4.0.

The breaking changes across those majors do not apply here:
- checkout v5/v6 harden `pull_request_target` checkouts; no workflow uses it
- setup-node v5 auto-caches when package.json has a `packageManager` field;
  it has none, and `cache: npm` is set explicitly anyway
- setup-node v7 drops the dummy NODE_AUTH_TOKEN export; the publish job sets
  NODE_AUTH_TOKEN itself
- stale v10 only moves the runtime to node 24

All of them also raise the runtime to node 24, which clears the deprecation
warnings on recent runs.
2026-07-27 21:35:14 +02:00
Daniel Sogl 4de0e83d51 ci: run workflows on node 24
Also drops the explicit `npm install -g npm@latest` step: node 24 bundles
npm 11.16, well over the >= 11.5.1 that trusted publishing requires. Pulling
an unpinned npm@latest right before publishing 258 packages was the larger
risk of the two.
2026-07-27 21:35:14 +02:00
Daniel Sogl 9818f74831 ci: publish to npm via trusted publishing (OIDC)
npm validates the OIDC claim of the entry-point workflow, not the one that
runs `npm publish`. Calling publish.yml via workflow_call meant the trust
check could never match, so the publish job moves inline into
release-please.yml and publish.yml is removed.

setup-node with Node 22 ships npm 10.x; trusted publishing needs >= 11.5.1,
hence the explicit npm upgrade before publishing.

NPM_TOKEN stays as a fallback for packages that have no trusted publisher
yet — a brand new plugin cannot get one until it exists on npm. OIDC takes
precedence wherever a config is present.

Adds scripts/tasks/trust-packages.sh to configure the trusted publisher for
all 258 packages; npm has no multi-package call and `npm trust` requires
interactive 2FA, so it runs locally, in parallel, and is resumable.
2026-07-27 21:18:10 +02:00
Daniel Sogl ad6f55a85d fix: add id-token permission to release-please workflow
The publish workflow requires id-token: write for npm provenance.
When called via workflow_call, permissions are inherited from the
caller, so id-token must be declared in release-please.yml.
2026-03-21 16:22:38 -07:00
Daniel Sogl c18b91db03 fix: extract publish workflow for manual triggering
Split publish into a separate reusable workflow (publish.yml) that can
be triggered manually via workflow_dispatch or called from release-
please. This allows re-running publish independently when a release
already exists but publishing failed.
2026-03-21 16:21:15 -07:00
Daniel Sogl 6453f2ab78 fix: add npm provenance and fix core peer dependency version
Add --provenance flag to npm publish for supply chain security.
Add id-token: write permission to release workflow for OIDC-based
provenance attestation. Fix MIN_CORE_VERSION to dynamically use
current version instead of hardcoded ^8.0.2.
2026-03-21 16:04:52 -07:00
Daniel Sogl e263b0b062 chore: rename default branch from master to main
Update all workflow triggers and internal references from master to
main. The default branch on GitHub has been updated accordingly.
2026-03-21 15:20:39 -07:00
Daniel Sogl 01f6257ebf ci: modernize GitHub workflows and templates
Update CI workflow: restrict triggers to master+PRs, add concurrency
groups and npm cache. Update release-please and stale workflows to
latest action versions. Replace single ISSUE_TEMPLATE.md with YAML-
based templates (bug report, feature request, config). Rewrite
CONTRIBUTING.md for awesome-cordova-plugins.
2026-03-21 15:17:10 -07:00
Daniel Sogl 1e13573e4f chore(deps): update dependencies and add release-please configuration 2025-06-07 14:56:32 +02:00
Daniel Sogl 8876c53e3b fix(workflow): change default branch from 'main' to 'master' 2025-06-07 14:24:26 +02:00
Daniel Sogl 94c5527aa4 chore(release): add release please configuration 2025-06-07 14:21:49 +02:00