woocommerce / grow

7 stars 7 forks source link

Upgrade the `get-plugin-releases` action to use Node.js v20 #119

Closed eason9487 closed 4 months ago

eason9487 commented 4 months ago

Changes proposed in this Pull Request:

Part of #108

This PR upgrades the get-plugin-releases action to use Node.js v20. In addition, it makes the action easier to develop and test.

Detailed test instructions:

  1. Test the action locally

    1. Use Node.js v20
    2. cd packages/github-actions
    3. npm install
    4. node --watch actions/get-plugin-releases/src/get-plugin-releases.js
    5. There should be no output because it's changed to only perform directly when running in GitHub Actions
    6. Edit the packages/github-actions/actions/get-plugin-releases/src/get-plugin-releases.js file and save it with the following test code at the end of the file

      getPluginReleases( {
      slug: 'wordpress',
      numberOfReleases: 10,
      includeRC: false,
      includePatches: false,
      } );
      
      getPluginReleases( {
      slug: 'woocommerce',
      numberOfReleases: 10,
      includeRC: true,
      includePatches: true,
      } );
    7. There should be corresponding outputs image
  2. View a previous workflow run used v1 action
  3. View a test workflow run used updated action
  4. View the versions output