specify code is shell

This commit is contained in:
justknow 2025-04-04 09:28:25 +00:00
parent be388362dc
commit d11e4961ff

View file

@ -125,7 +125,7 @@ The registry supports [searching](https://docs.npmjs.com/cli/v7/commands/npm-sea
## Supported commands
```
```shell
npm install
npm ci
npm publish
@ -179,6 +179,6 @@ jobs:
When using Forgejo Actions with the NPM registry, you may have to use npm to obtain certain information. For instance, due to the structure of Forgejo's package storage, the published tarball is not stored in the `SERVER_URL/USER/-/packages/npm/PACKAGE_NAME/PACKAGE_VERSION/files/PACKAGE_ID/` location in the UI where it can be manually obtained. If you need to access the tarball directly, use this command to get a URL compatible with curl and other CLI tools that can run in Forgejo Actions.
```
```shell
npm view PACKAGE_NAME{@PACKAGE_VERSION} --registry={REGISTRY_URL} dist.tarball
```