Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/simenandre/publish-with-yarn-classic

Publish NPM packages with Yarn Classic
https://github.com/simenandre/publish-with-yarn-classic

action github-actions

Last synced: 17 days ago
JSON representation

Publish NPM packages with Yarn Classic

Awesome Lists containing this project

README

        

# simenandre/publish-with-yarn-classic

This composite action will publish your package to NPM using Yarn Classic.

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 NPM

on:
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 --frozen-lockfile

- name: Build 🔨
run: yarn build

- uses: simenandre/publish-with-yarn-classic@v1
with:
npm-auth-token: ${{ secrets.NPM_TOKEN }}
```

## Other actions

- [simenandre/publish-with-yarn](https://github.com/simenandre/publish-with-yarn)
- [simenandre/publish-with-pnpm](https://github.com/simenandre/publish-with-pnpm)