Skip to content

Public Packages

Public Packages #3

name: Public Packages
on:
push:
branches: [main]
workflow_dispatch:
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: pnpm
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: pnpm install
- name: Build Package
run: pnpm build
- name: Publish Package
run: pnpm release
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
publish-gpr:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: pnpm
registry-url: https://npm.pkg.github.com/
- name: Install dependencies
run: pnpm install
- name: Build Package
run: pnpm build
- name: Publish Package
run: pnpm release
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}