NPM Publish Release #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: NPM Publish Release | |
on: | |
workflow_dispatch: | |
branches: | |
- main | |
jobs: | |
CI: | |
uses: ./.github/workflows/ci.yml | |
publish: | |
runs-on: ubuntu-latest | |
needs: CI | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout Repository | |
- name: Install PNPM | |
uses: pnpm/action-setup@v3 | |
with: | |
version: latest | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: 'pnpm' | |
- name: Install Dependencies | |
run: pnpm install | |
- run: pnpm run build:prod | |
name: Build Production | |
- run: pnpm publish | |
name: Publish to NPM | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}k | |