Skip to content

Commit

Permalink
feat: log github context and core tools in modify-package-json action
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudcome committed Jul 23, 2024
1 parent 80ac116 commit c237172
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,20 @@ runs:
run: |
echo "//npm.pkg.github.com/:_authToken=${{ github.token }}" > .npmrc
echo "registry=https://npm.pkg.github.com/" >> .npmrc
- name: Modify the package.json name to meet GitHub's naming requirements
if: inputs.target == 'github'
uses: actions/github-script@v7
with:
result-encoding: string
script: |
const script = require('./dist/index.cjs');
console.log('github', github);
console.log('context', context);
console.log('core', core);
console.log('exec', exec);
console.log('glob', glob);
console.log('io', io);
const script = __original_require__('./dist/index.cjs');
return await script(__dirname, context);
- name: Publish
Expand Down

0 comments on commit c237172

Please sign in to comment.