Skip to content

Commit

Permalink
setup pkg-pr-new
Browse files Browse the repository at this point in the history
  • Loading branch information
sirineJ committed Dec 11, 2024
1 parent c7c36c2 commit ebe6e64
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Continuous Releases
on:
issue_comment:
types: [created]

jobs:
build:
if: ${{ github.event.comment.body == '/preview' && github.event.issue.pull_request }}
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js v20
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build packages
run: npm run build

- name: Publish packages
run: npx pkg-pr-new publish './packages/circuit-ui' './packages/design-tokens' './packages/icons'
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"github-slugger": "^2.0.0",
"jsdom": "^24.0.0",
"lerna": "^8.1.9",
"pkg-pr-new": "^0.0.35",
"prettier-plugin-astro": "^0.14.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down

0 comments on commit ebe6e64

Please sign in to comment.