Skip to content

Releases: rexdefuror/read-package-json

v1.0.5

30 Nov 15:45
Compare
Choose a tag to compare

Release read-package-json version 1.0.5

Full Changelog: v1.0.4...v1.0.5

⚒️Fix: Parsing of name and description properties to variables.

v1.0.4

30 Nov 15:27
Compare
Choose a tag to compare

Release read-package-json version 1.0.4

Initial release of the package.

Compare changes: v1.0.3...v1.0.4

Example Usage

- name: Package.json info
  uses: rexdefuror/read-package-json@v1

- run: echo "name - ${{ env.PACKAGE_NAME }}"
- run: echo "version - ${{ env.PACKAGE_VERSION }}"
- run: echo "description - ${{ env.PACKAGE_DESCRIPTION }}"

Example with custom file name

- name: Package.json info
  uses: rexdefuror/read-package-json@v1
  with:
    file: testing.json

- run: echo "name - ${{ env.TESTING_NAME }}"
- run: echo "version - ${{ env.TESTING_NAME }}"
- run: echo "description - ${{ env.TESTING_DESCRIPTION }}"

Example with custom path

- name: Package.json info
  uses: rexdefuror/read-package-json@v1
  with:
    file: testing.json
    path: ./src

- run: echo "name - ${{ env.TESTING_NAME }}"
- run: echo "version - ${{ env.TESTING_NAME }}"
- run: echo "description - ${{ env.TESTING_DESCRIPTION }}"