Skip to content

Commit

Permalink
build: set up pkg.pr.new (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio authored Oct 15, 2024
1 parent 1f5c56e commit 4613c58
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
on: [push, pull_request]

name: CI

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
test:
name: Test
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/release-commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish Any Commit

on: [push, pull_request]

jobs:

This comment has been minimized.

Copy link
@jerome-benoit

jerome-benoit Oct 16, 2024

Contributor

Please restrict the workflow to upstream repo only, like with tinybench.

This comment has been minimized.

Copy link
@AriPerkkio

AriPerkkio Oct 17, 2024

Author Member

Sure let's do that.

publish:
name: Publish commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Use Node.js 20.x
uses: actions/setup-node@v1
with:
node-version: 20.x

- uses: pnpm/action-setup@v2

- name: Install Dependencies
run: pnpm install

- name: Build
run: pnpm build

- run: pnpx pkg-pr-new publish --compact

0 comments on commit 4613c58

Please sign in to comment.