Skip to content

chore: update pkg.pr.new job #375

chore: update pkg.pr.new job

chore: update pkg.pr.new job #375

Workflow file for this run

name: Publish to pkg.pr.new
on:
pull_request:
branches: [main]
push:
branches: [main]
tags: ['!**']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v4
- name: Install Packages
run: pnpm install
- name: Build
run: pnpm run build
- run: pnpx pkg-pr-new publish --compact './packages/eslint-plugin-svelte' --json output.json --comment=off
- uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const fs = require('fs');
const output = JSON.parse(fs.readFileSync('output.json', 'utf8'));
const { default: process } = await import('${{ github.workspace }}/tools/pkg.pr.new-comment.mjs')
await process({github, context, core, output})