Skip to content

Publish Package

Publish Package #10

Workflow file for this run

name: Publish Package
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
- '@mango-kit/**' # Push events to matching @mango-kit*, i.e. @mango-kit@components
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7.29.3
- name: Set node version to 18.15.0
uses: actions/setup-node@v3
with:
node-version: 18.15.0
registry-url: https://registry.npmjs.org/
cache: 'pnpm'
- name: Install deps
run: pnpm install
- name: Publish Package
run: pnpm run release --tag ${{ github.ref_name }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}