Skip to content

Commit 8815042

Browse files
committed
simplify
1 parent 271a1bd commit 8815042

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

.github/workflows/pkg.pr.new.yml

+1-19
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,4 @@ jobs:
1414
- name: Build
1515
run: pnpm run build
1616

17-
- run: pnpx pkg-pr-new publish --json output.json --compact --no-template
18-
- name: Add metadata to output
19-
uses: actions/github-script@v6
20-
with:
21-
github-token: ${{ secrets.GITHUB_TOKEN }}
22-
script: |
23-
const fs = require('fs');
24-
const output = JSON.parse(fs.readFileSync('output.json', 'utf8'));
25-
output.number = context.issue.number;
26-
output.event_name = context.eventName;
27-
output.ref = context.ref;
28-
fs.writeFileSync('output.json', JSON.stringify(output), 'utf8');
29-
- name: Upload output
30-
uses: actions/upload-artifact@v4
31-
with:
32-
name: output
33-
path: ./output.json
34-
35-
- run: ls -R .
17+
- run: pnpx pkg-pr-new publish --compact

0 commit comments

Comments
 (0)