Skip to content

Commit 319f6ec

Browse files
committed
ci: nightly releases
1 parent d141ed6 commit 319f6ec

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/nightly.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Publish Nightlies
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- '**'
7+
tags:
8+
- '!**'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Install node
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 22
22+
23+
- name: Install pnpm
24+
uses: pnpm/[email protected]
25+
with:
26+
version: 9.7.0
27+
28+
- name: Get pnpm store directory
29+
id: pnpm-cache
30+
run: |
31+
echo "pnpm_cache_dir=$(pnpm store path)" >> "$GITHUB_OUTPUT"
32+
33+
- name: Cache pnpm modules
34+
uses: actions/cache@v4
35+
with:
36+
path: |
37+
${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
38+
~/.cache/Cypress
39+
key: pnpm-v1-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
40+
restore-keys: |
41+
pnpm-v1-${{ runner.os }}-
42+
43+
- name: Install dependencies
44+
run: pnpm install
45+
46+
- name: Build
47+
run: pnpm build
48+
49+
- run: pnpx pkg-pr-new publish './packages/*'

0 commit comments

Comments
 (0)