Skip to content

publish-with-pnpm

Actions
Publishes a NPM package using PNPM
v2.0.0
Latest
Star (9)

simenandre/publish-with-pnpm

This composite action will publish your package to NPM using PNPM.

It parses tag version and set that in package.json before publishing, and pushes that to the default branch after publishing.

name: Release to NPM

on:
  release:
    types: [published]

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout 🛎️
        uses: actions/checkout@v4

      - uses: pnpm/action-setup@v4

      - name: Use Node LTS ✨
        uses: actions/setup-node@v4
        with:
          node-version: lts/*
          registry-url: https://registry.npmjs.org
          cache: pnpm

      - name: Install dependencies 📦️
        run: pnpm install --frozen-lockfile

      - name: Build 🔨
        run: pnpm build

      - uses: simenandre/publish-with-pnpm@v2
        with:
          npm-auth-token: ${{ secrets.NPM_TOKEN }}

Other actions

publish-with-pnpm is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Publishes a NPM package using PNPM
v2.0.0
Latest

publish-with-pnpm is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.