Skip to content

Publish Package to registries #17

Publish Package to registries

Publish Package to registries #17

Workflow file for this run

name: Publish Package to registries
on:
workflow_dispatch:
release:
types: [published]
jobs:
publish-github:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@hammzj'
- run: yarn
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}