Skip to content

Publish Package

Publish Package #65

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-scripts/**' # Push events to matching @mango-scripts*, i.e. @mango-scripts@react-scripts
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 }}