Publish Package #10
Workflow file for this run
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: Publish Package | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
publish: | |
# prevents this action from running on forks | |
if: github.repository == 'vexip-ui/nuxt' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Set node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
registry-url: https://registry.npmjs.org/ | |
cache: pnpm | |
- name: Install deps | |
run: pnpm install | |
- name: Prepare | |
run: pnpm dev:prepare | |
- name: Build | |
run: pnpm run build | |
- name: Publish package | |
run: pnpm run publish:ci ${{ github.ref_name }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NODE_OPTIONS: --max-old-space-size=4096 |