Skip to content

publish-with-yarn-classic

Actions
Publishes a NPM package using Yarn Classic
v2.0.0
Latest
Star (0)

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.

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

publish-with-yarn-classic 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 Yarn Classic
v2.0.0
Latest

publish-with-yarn-classic 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.