Skip to content

Commit

Permalink
clients/packages/checkout: add publish CI
Browse files Browse the repository at this point in the history
  • Loading branch information
frankie567 committed Oct 22, 2024
1 parent adc6701 commit 63520bc
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/publish_checkout.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish @polar-sh/checkout

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

defaults:
run:
working-directory: ${{ github.workspace }}/clients

permissions:
contents: write
pull-requests: write

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

- uses: pnpm/action-setup@v4
with:
version: 9

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: "pnpm"
cache-dependency-path: "pnpm-lock.yaml"

- name: Install dependencies
run: pnpm install

- name: Publish
run: pnpm -C packages/checkout publish
3 changes: 2 additions & 1 deletion clients/packages/checkout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"version": "0.0.0",
"scripts": {
"dev": "tsup src/embed.ts --format cjs,esm,iife --dts --watch",
"build": "tsup src/embed.ts --format cjs,esm,iife --dts --sourcemap --minify terser"
"build": "tsup src/embed.ts --format cjs,esm,iife --dts --sourcemap --minify terser",
"publish": "turbo run build lint test && changeset version && changeset publish"
},
"exports": {
"./embed": {
Expand Down

0 comments on commit 63520bc

Please sign in to comment.