Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simenandre/publish-with-yarn
https://github.com/simenandre/publish-with-yarn
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/simenandre/publish-with-yarn
- Owner: simenandre
- License: apache-2.0
- Created: 2023-05-10T14:43:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-08T00:01:24.000Z (12 months ago)
- Last Synced: 2024-12-05T08:44:45.617Z (18 days ago)
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simenandre/publish-with-yarn
This composite action will publish your package to NPM using Yarn.
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: [released]jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3- name: Use Node LTS ✨
uses: actions/setup-node@v3
with:
node-version: lts/*
registry-url: https://registry.npmjs.org
cache: yarn- name: Install dependencies 📦️
run: yarn install --immutable- name: Build 🔨
run: yarn build- uses: simenandre/publish-with-yarn@v1
with:
npm-auth-token: ${{ secrets.NPM_TOKEN }}
```## Other actions
- [simenandre/publish-with-yarn-classic](https://github.com/simenandre/publish-with-yarn-classic)
- [simenandre/publish-with-pnpm](https://github.com/simenandre/publish-with-pnpm)