Skip to content

Commit fa43df0

Browse files
committed
ci: add auto release
1 parent 822a10c commit fa43df0

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/pkg.pr.new.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Publish Any Commit
2+
3+
on:
4+
pull_request:
5+
branches: main
6+
paths-ignore:
7+
- 'docs/**'
8+
- 'examples/**'
9+
- 'functions/**'
10+
- 'tests/**'
11+
12+
push:
13+
branches:
14+
- '**'
15+
tags:
16+
- '!**'
17+
paths-ignore:
18+
- 'docs/**'
19+
- 'examples/**'
20+
- 'functions/**'
21+
- 'tests/**'
22+
23+
jobs:
24+
build:
25+
if: github.repository == 'vuejs/vuefire'
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v4
31+
with:
32+
fetch-depth: 0
33+
- uses: pnpm/action-setup@v4
34+
- uses: actions/setup-node@v4
35+
with:
36+
node-version: lts/*
37+
cache: pnpm
38+
39+
- name: Install
40+
run: pnpm install --frozen-lockfile
41+
42+
- name: Build
43+
run: pnpm run build
44+
45+
- name: Release
46+
run: pnpm dlx pkg-pr-new publish --compact --pnpm .

0 commit comments

Comments
 (0)