Skip to content

Commit 33197d0

Browse files
committed
Try publishing from CI
1 parent 91e4ca2 commit 33197d0

2 files changed

Lines changed: 29 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [next]
66
pull_request:
77

88
# The three jobs have no `needs:` between them, so they run in parallel.
@@ -78,3 +78,30 @@ jobs:
7878
name: playwright-report
7979
path: playwright-report/
8080
retention-days: 14
81+
82+
publish:
83+
name: Publish unreleased package versions
84+
if: github.event_name == 'push' && github.ref == 'refs/heads/next'
85+
needs: [check, unit, e2e]
86+
runs-on: ubuntu-latest
87+
environment: npm
88+
permissions:
89+
id-token: write
90+
contents: read
91+
steps:
92+
- name: Checkout repository
93+
uses: actions/checkout@v6
94+
- name: Set up pnpm
95+
uses: pnpm/action-setup@v6
96+
- name: Set up Node.js
97+
uses: actions/setup-node@v6
98+
with:
99+
node-version: 26
100+
cache: pnpm
101+
registry-url: https://registry.npmjs.org
102+
- name: Install dependencies
103+
run: pnpm install --frozen-lockfile
104+
- name: Build
105+
run: pnpm run build
106+
- name: Publish unreleased versions
107+
run: pnpm stage publish --provenance

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
"vite": "^8.0.16",
2626
"vitest": "^4.1.8"
2727
},
28-
"packageManager": "pnpm@11.5.1"
28+
"packageManager": "pnpm@11.8.0"
2929
}

0 commit comments

Comments
 (0)