Forgejo drop-in for pnpm/action-setup: install pnpm at a pinned or packageManager-declared version. No github.com.
  • Shell 82.4%
  • Makefile 17.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stephen Way 1a93c3fe13
All checks were successful
test / unit (push) Successful in 4s
test / e2e (push) Successful in 11s
Merge pull request 'Scrub runner event env in test harness' (#1) from fix/harness-event-path-scrub into main
Reviewed-on: #1
2026-08-06 00:02:48 +00:00
.forgejo/workflows Repoint references from rasterstate to fjord org 2026-06-03 16:17:10 -07:00
scripts Initial release: setup-pnpm-action 2026-05-31 19:47:40 -07:00
tests Scrub runner event env in test harness 2026-08-05 23:07:04 +00:00
.gitignore Initial release: setup-pnpm-action 2026-05-31 19:47:40 -07:00
action.yml Repoint references from rasterstate to fjord org 2026-06-03 16:17:10 -07:00
CHANGELOG.md Initial release: setup-pnpm-action 2026-05-31 19:47:40 -07:00
LICENSE Initial release: setup-pnpm-action 2026-05-31 19:47:40 -07:00
Makefile Initial release: setup-pnpm-action 2026-05-31 19:47:40 -07:00
MIGRATION.md Repoint references from rasterstate to fjord org 2026-06-03 16:17:10 -07:00
README.md Repoint references from rasterstate to fjord org 2026-06-03 16:17:10 -07:00

Setup pnpm (Forgejo)

Forgejo's pnpm/action-setup. Install pnpm at a pinned or packageManager-declared version on a self-hosted Forgejo runner, using the runner's npm. No github.com, no PAT.

Part of the Fjord Actions bundle. Pairs with setup-node-action, which installs Node but not pnpm.

Usage

jobs:
  build:
    runs-on: [self-hosted, Linux]
    steps:
      - uses: actions/checkout@v6

      - uses: https://rasterhub.com/fjord/setup-node-action@v1
        with:
          node-version: '20'
          cache: pnpm                # backed by your S3 cache; needs the backend env

      - uses: https://rasterhub.com/fjord/setup-pnpm-action@v1
        with:
          version: 9                 # or omit to read packageManager from package.json

      - run: pnpm install --frozen-lockfile

Order matters when you cache: install Node, then pnpm, then let setup-node-action's cache: pnpm find the pnpm store. (Caching needs the RASTER_CACHE_S3_* backend env on the job.)

Inputs

Input Default Description
version (resolved) pnpm version (e.g. 9, 10, 8.15.4). If empty, resolved from package.json.
run_install false Run pnpm install after installing pnpm.
package_json_file package.json File to read the pnpm version from.
dest Accepted for compatibility; informational (pnpm is installed globally via npm).

Version resolution when version is empty: package.json packageManager (pnpm@x.y.z, any +sha suffix stripped) -> engines.pnpm -> latest.

Outputs

Output Description
version The installed pnpm version.

See MIGRATION.md for differences from pnpm/action-setup.

License

MIT, see LICENSE.