readme-aura 0.4.6 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/action.yml +3 -19
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![readme-aura-component-0](./.github/assets/readme-aura-component-0-e08a6d6a.svg "Generated by readme-aura")](https://www.npmjs.com/package/readme-aura)
1
+ [![readme-aura-component-0](./.github/assets/readme-aura-component-0-ab0145de.svg "Generated by readme-aura")](https://www.npmjs.com/package/readme-aura)
2
2
 
3
3
  Write custom **React/JSX components** directly inside your Markdown, and readme-aura will render them into beautiful SVGs that work on GitHub.
4
4
 
package/action.yml CHANGED
@@ -53,33 +53,17 @@ runs:
53
53
  with:
54
54
  node-version: '20'
55
55
 
56
- - name: Install readme-aura
57
- shell: bash
58
- run: |
59
- cd ${{ github.action_path }}
60
- npm ci --ignore-scripts
61
- npm run build
62
-
63
- - name: Detect GitHub user
64
- id: detect-user
65
- shell: bash
66
- run: |
67
- if [ -n "${{ inputs.github_user }}" ]; then
68
- echo "user=${{ inputs.github_user }}" >> "$GITHUB_OUTPUT"
69
- else
70
- echo "user=${{ github.repository_owner }}" >> "$GITHUB_OUTPUT"
71
- fi
72
-
73
56
  - name: Run readme-aura build
74
57
  shell: bash
75
58
  env:
76
59
  GITHUB_TOKEN: ${{ inputs.github_token }}
77
60
  run: |
78
- node ${{ github.action_path }}/dist/cli.js build \
61
+ GITHUB_USER="${{ inputs.github_user != '' && inputs.github_user || github.repository_owner }}"
62
+ npx readme-aura@latest build \
79
63
  --source "${{ inputs.source }}" \
80
64
  --output "${{ inputs.output }}" \
81
65
  --assets "${{ inputs.assets_dir }}" \
82
- --github-user "${{ steps.detect-user.outputs.user }}" \
66
+ --github-user "$GITHUB_USER" \
83
67
  --github-token "$GITHUB_TOKEN" \
84
68
  ${{ inputs.fonts_dir != '' && format('--fonts-dir "{0}"', inputs.fonts_dir) || '' }}
85
69
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "readme-aura",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Next-Gen README generator for GitHub — render React/JSX components to SVG inside Markdown",
5
5
  "repository": {
6
6
  "type": "git",