Skip to content

Commit

Permalink
ci: add preview package workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
renejfc committed Feb 21, 2025
1 parent 46fe18c commit 2562a93
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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

0 comments on commit 2562a93

Please sign in to comment.