Skip to content

v4.0.4-npm

v4.0.4-npm #37

Workflow file for this run

name: Publish Package to npm
on:
release:
types: [created]
jobs:
publish-npm:
if: endsWith(github.ref, '-npm')
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
registry-url: "https://registry.npmjs.org/"
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 9
- name: Install dependencies
working-directory: vite
run: pnpm install
- name: Build and Publish
working-directory: vite
run: |
pnpm build
pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}