mirror of
https://codeberg.org/forgejo/docs.git
synced 2025-04-26 13:40:30 +03:00
specify code is shell
This commit is contained in:
parent
be388362dc
commit
d11e4961ff
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue