Skip to content

Commit a2f413c

Browse files
committed
ci: add pkg.pr.new
1 parent f3acc87 commit a2f413c

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

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

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish Any Commit
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
tags:
7+
- '!**'
8+
9+
env:
10+
PNPM_CACHE_FOLDER: .pnpm-store
11+
HUSKY: 0 # Bypass husky commit hook for CI
12+
13+
permissions: {}
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event.number }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
node-version: [20]
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v4
28+
29+
- run: corepack enable
30+
- uses: actions/setup-node@v4
31+
with:
32+
node-version: ${{ matrix.node-version }}
33+
cache: "pnpm"
34+
- name: Install dependencies
35+
run: pnpm install
36+
- name: Build
37+
run: pnpm build
38+
- run: pnpx pkg-pr-new publish --compact --pnpm

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
"description": "Opinionated ESLint configuration for Tres.js ecosystem",
77
"author": "Alvaro Saburido <[email protected]> (https://github.com/alvarosabu/)",
88
"license": "MIT",
9-
"repository": "tresjs/eslint-config",
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/Tresjs/eslint-config.git"
12+
},
1013
"keywords": [
1114
"eslint",
1215
"eslint-config",

0 commit comments

Comments
 (0)