nodejs / node-api-headers

Repository used to make the N-API headers more accessible
MIT License
32 stars 13 forks source link

Add helper scripts for updating headers and symbols.js #7

Closed KevinEady closed 1 year ago

KevinEady commented 1 year ago

Added two new scripts runnable via npm:

This PR also adds a GitHub Actions workflow for performing the sync on a daily schedule (also can be manually triggered).

Relates: #2

KevinEady commented 1 year ago

Sample Action Runs

Do not create PR if branch exists

Do not create PR if no changes

Run on daily schedule at 00:00 UTC

KevinEady commented 1 year ago

Run from https://github.com/nodejs/node-api-headers/pull/7/commits/b9a57c3721c8be26c76a5e2777e05ed3886a938b: https://github.com/KevinEady/node-api-headers/actions/runs/3830241460/jobs/6517859978 creating PR https://github.com/KevinEady/node-api-headers/pull/6

KevinEady commented 1 year ago

Run from https://github.com/nodejs/node-api-headers/pull/7/commits/219ad9f098f1888b0f9c6dd9189c8baa6770eee4: https://github.com/KevinEady/node-api-headers/actions/runs/3857398501/jobs/6574747611 creating PR https://github.com/KevinEady/node-api-headers/pull/7

mhdawson commented 1 year ago

@KevinEady I think when we discussed in a Node-API meeting you were going to update to remove the Experimental part of the headers. Was that added and I just can't find it?

mhdawson commented 1 year ago

@KevinEady, I found the part that removes the experimental functions from the symbols but I think we also should do that in the header file as well.

KevinEady commented 1 year ago

@KevinEady, I found the part that removes the experimental functions from the symbols but I think we also should do that in the header file as well.

Addressed in https://github.com/nodejs/node-api-headers/compare/41f0767...36a1e92b19642782e459d129657d5dbe761aa1ce

This action run https://github.com/KevinEady/node-api-headers/actions/runs/4174541956/jobs/7228252444 created PR https://github.com/KevinEady/node-api-headers/pull/10/files?diff=split&w=1

@NickNaso @mhdawson this is ready for review again