Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballyama committed Dec 1, 2024
1 parent 271a1bd commit 8be8722
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,4 @@ jobs:
run: pnpm install
- name: Build
run: pnpm run build

- run: pnpx pkg-pr-new publish --json output.json --compact --no-template
- name: Add metadata to output
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const fs = require('fs');
const output = JSON.parse(fs.readFileSync('output.json', 'utf8'));
output.number = context.issue.number;
output.event_name = context.eventName;
output.ref = context.ref;
fs.writeFileSync('output.json', JSON.stringify(output), 'utf8');
- name: Upload output
uses: actions/upload-artifact@v4
with:
name: output
path: ./output.json

- run: ls -R .
- run: pnpx pkg-pr-new publish --compact

0 comments on commit 8be8722

Please sign in to comment.