Skip to content

Commit

Permalink
ci: add pkg.pr.new
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Sep 13, 2024
1 parent f3acc87 commit a2f413c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish Any Commit
on:
push:
branches:
- '**'
tags:
- '!**'

env:
PNPM_CACHE_FOLDER: .pnpm-store
HUSKY: 0 # Bypass husky commit hook for CI

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout code
uses: actions/checkout@v4

- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"

Check failure on line 33 in .github/workflows/pkg.pr.new.yml

View workflow job for this annotation

GitHub Actions / Lint (20)

Must use plain style scalar

Check failure on line 33 in .github/workflows/pkg.pr.new.yml

View workflow job for this annotation

GitHub Actions / Lint (20)

Strings must use singlequote
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- run: pnpx pkg-pr-new publish --compact --pnpm

Check failure on line 38 in .github/workflows/pkg.pr.new.yml

View workflow job for this annotation

GitHub Actions / Lint (20)

Newline required at end of file but not found
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
"description": "Opinionated ESLint configuration for Tres.js ecosystem",
"author": "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)",
"license": "MIT",
"repository": "tresjs/eslint-config",
"repository": {
"type": "git",
"url": "git+https://github.com/Tresjs/eslint-config.git"
},
"keywords": [
"eslint",
"eslint-config",
Expand Down

0 comments on commit a2f413c

Please sign in to comment.