A good general description on how to develop a GitHub JavaScript action can be found here.
- Node 20
-
Create a classic Personal Access Token (PAT) for your GitHub profile,
with permissionread:packages
:
https://github.com/settings/tokens -
Use that token to log in to the registry:
npm login --registry https://npm.pkg.github.com --scope @actions-rs
Username: dummy
Password: <paste your PAT here>
This allows @actions-rs
npm packages to be downloaded.
npm install
npm run build
Updates the contents of the dist
folder, which then needs to be committed.
npm run format
npm run format-check
npm run lint
npm run test
npm run all
The following places need to be updated
- action.yml
- src/main.ts (
getCheckReleaseArguments()
) - dist/index.js (automatically generated)
- README.md