8000 chore(deps): bump peter-evans/create-pull-request from 7.0.8 to 7.0.9 (#20157) · webpack/webpack@200ee3d · GitHub
[go: up one dir, main page]

Skip to content

chore(deps): bump peter-evans/create-pull-request from 7.0.8 to 7.0.9… #325

chore(deps): bump peter-evans/create-pull-request from 7.0.8 to 7.0.9…

chore(deps): bump peter-evans/create-pull-request from 7.0.8 to 7.0.9… #325

name: Publish to pkg.pr.new
on:
pull_request:
branches: [main]
push:
branches: [main]
tags: ["!**"]
permissions:
issues: write
pull-requests: write
jobs:
publish:
if: |
github.repository == 'webpack/webpack' &&
(github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository)
name: Publish to pkg.pr.new
runs-on: ubuntu-latest
outputs:
sha: ${{ steps.publish.outputs.sha }}
urls: ${{ steps.publish.outputs.urls }}
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- run: corepack enable
- name: Use Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: lts/*
cache: yarn
- run: yarn --frozen-lockfile
- run: npx pkg-pr-new publish --compact --json output.json --comment=off
- name: Add metadata to output
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { run } = await import('${{ github.workspace }}/.github/scripts/publish-to-pkg-pr-new.mjs');
await run({ github, context });
0