Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.
/ npm-package-sync Public archive

Sync packages published to one registry with another one

Notifications You must be signed in to change notification settings

LexSwed/npm-package-sync

Repository files navigation

GitHub action sync

Synchronizes published GitHub package with npm.

Usage

You need to checkout this repository from within your GitHub job and use it as a local one. Example:

name: Sync packages
on:
  release:
    types: [published]
jobs:
  sync_packages:
    runs-on: ubuntu-latest
    steps:
      - name: Sync packages
        uses: LexSwed/npm-package-sync
        with:
          registry-to: 'https://npm.pkg.github.com'
          token-to: ${{ secrets.GITHUB_TOKEN }}