Skip to content

Workflow file for this run

name: Publish package to GitHub Package Registry
on:
release:
types:
- published
jobs:
Publish:
name: Publish to GitHub Package Registry
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js v18 with GitHub Package Registry
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
registry-url: https://registry.yarnpkg.com/
- name: Install Dependencies
run: yarn --immutable
- name: Build package
run: yarn build
- name: Publish to GitHub
run: |
yarn config set npmAuthToken ${NODE_AUTH_TOKEN}
yarn config set npmPublishRegistry "https://npm.pkg.github.com"
yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}