v4.0.4-npm #37
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 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 }} |