Skip to content

Note: use of GitHub Actions and Packages

Ross Tang edited this page Nov 28, 2020 · 2 revisions

Observations

GitHub Actions

  • we use ubuntu@latest. nodejs add-on will be build based on ubuntu, and nodejs 12 (i.e. abi=72). npm rebuild may require.
  • the runner is a non-root user. The inner container may require root to run commands.
  • Setup Node action can install nodejs at a particular version. The node -v returns correct version. However, npm add-on does not seem to recognize it; and npm rebuild is run based nodejs @ latest.
  • Cache action will add a cleanup step automatically. However, if some data volume is created with root, the Cache clean up may fail to remove it.

GitHub Packages

  • npm scoped packages requires the namespace to be the account name. Therefore, we cannot publish @fabric-es scope to this repo directly. Instead, we publish to GitHub account at @fabric-es/*
  • it require .npmrc , so that we do not require npm login

List of available version

Need carefully observe. From time to time, the image version may change. https://github.com/actions/node-versions/blob/main/versions-manifest.json