Skip to content

Commit

Permalink
feat: pkg-pr-new
Browse files Browse the repository at this point in the history
  • Loading branch information
NisargIO committed Dec 12, 2024
1 parent d68ebef commit f5dc1ed
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/pkg-pr-new.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish Any Commit
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]

steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.1.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile --strict-peer-dependencies=false

- name: Build
run: |
cd packages/scan
NODE_ENV=production pnpm build
env:
NODE_ENV: production

- name: Publish NPM Package to pkg-pr-new
run: pnpx pkg-pr-new publish ./packages/scan
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f5dc1ed

Please sign in to comment.