ci: add preview package workflow #2
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: Package Preview | |
on: | |
pull_request: | |
push: | |
branches-ignore: | |
- 'main' | |
tags: | |
- '!**' # excludes all tags | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
- name: Install deps | |
run: npm install | |
- name: Build package | |
run: npm run build | |
- name: Publish preview | |
run: npx pkg-pr-new publish --compact --comment=update |