Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simenandre/publish-with-pnpm
https://github.com/simenandre/publish-with-pnpm
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/simenandre/publish-with-pnpm
- Owner: simenandre
- License: apache-2.0
- Created: 2023-05-11T11:46:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-25T18:21:23.000Z (5 months ago)
- Last Synced: 2024-12-01T19:42:03.728Z (about 1 month ago)
- Size: 13.7 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.```yaml
name: Release to NPMon:
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
- [simenandre/publish-with-yarn](https://github.com/simenandre/publish-with-yarn)
- [simenandre/publish-with-yarn-classic](https://github.com/simenandre/publish-with-yarn-classic)