2 small suggestions to enhance “A simple package” documentation
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- github-actions, node.js
- Área
- ci-cd, documentation
Línea de trabajo
Comienza con la página «A simple package» en https://napi.rs/docs/introduction/simple-package y compara sus indicaciones de publicación con el flujo de trabajo CI.yml mencionado en la incidencia. Aclara el requisito del gestor de paquetes y del archivo de bloqueo, e identifica NPM_TOKEN como un secreto del repositorio con la ruta correcta en GitHub Settings; el trabajo estará terminado cuando la página coincida exactamente con el flujo de trabajo.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
👋 Hi, thanks so much for creating this awesome tool to streamline the process of creating and publishing Node.js addon. I am following the https://napi.rs/docs/introduction/simple-package page to use it for the first time and had a good experience. I did ran into 2 issues however so I thought to drop some suggestions here.
Suggestion 1 is pertaining to the following statement in the doc
I'm using yarn to install the dependencies here, you can replace it by your favorite package manager.
I don't think the second half of this statement is correct. I initially used npm install to install dependency, but CI doesn't like it because it uses yarn as config and it was expecting to find a yarn.lock file, so I had to resort to yarn to generate the lock file to make CI happy.
The following was the error I ran into previously
Run actions/setup-node@v4
Found in cache @ /Users/runner/hostedtoolcache/node/18.19.0/x64
Environment details
/Users/runner/.yarn/bin/yarn --version
1.22.19
/Users/runner/.yarn/bin/yarn cache dir
/Users/runner/Library/Caches/Yarn/v6
Error: Dependencies lock file is not found in /Users/runner/work//. Supported file patterns: yarn.lock
(Log based on https://github.com/xitanggg/enigo-node-insert-text/actions/runs/7324902521/job/19948934147)
Suggestion 2 is pertaining to the following statement in the doc
In order to publish packages in GitHub Actions, you need to configure the NPM_TOKEN environment variable in your GitHub repo.
In the project Settings -> Secrets, add your NPM_TOKEN into it.
Environment secret, environment variable, repository secret are 3 different things. The CI.yml is actually using NPM_TOKEN as a repository secret secrets.NPM_TOKEN, so I'd suggest paraphrasing it with something like the following to make it more clear
In order to publish packages in GitHub Actions, you need to configure the NPM_TOKEN as a repository secret in your GitHub repo.
In the project Settings -> Secrets and variables -> Actions -> Repository secrets, add your NPM_TOKEN into it.
Thanks
- Lenguaje dominante
- MDX
- Estrellas
- 25
- Forks
- 48
- Merge medio
- 1 d 3 h
- PR fusionados (30 d)
- 14
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de napi-rs/website
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Feedback for “Home – NAPI-RS”Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
napi-rs/website#37 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Feedback for “A simple package”Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
napi-rs/website#233 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Feedback for “Getting started”Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 30/100
napi-rs/website#216 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
Todos los issues de napi-rs/website
Issues similares
-
Old /download.php attachment links: redirect drops the subfolder, nginx.example.conf returns 404AbiertoBug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
kind/bug require/reproduce require/severity
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
ci good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
TMHSDigital/GH-Arcade#111 ·
-
agent:WSL ci code-review linux pri:low refactoring
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
ci: raise .github/workflows/test.yml timeout-minutes from 20 to 35 as suite exceeds 30,899 testsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Jason-Vaughan/TangleClaw#3075 ·
Los mantenedores suelen responder en 1 día