mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-08 05:01:11 +00:00
Updates
This commit is contained in:
parent
9bb7038a07
commit
2b9c956517
6 changed files with 113 additions and 0 deletions
28
README.md
28
README.md
|
@ -39,6 +39,34 @@ jobs:
|
|||
- run: npm test
|
||||
```
|
||||
|
||||
Set up auth with npm:
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
version: '10.x'
|
||||
registry-url: <registry url>
|
||||
- run: npm install
|
||||
- run: npm publish
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
```
|
||||
|
||||
Set up auth with yarn:
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
version: '10.x'
|
||||
registry-url: <registry url>
|
||||
- run: npm install
|
||||
- run: yarn publish
|
||||
env:
|
||||
YARN_TOKEN: ${{ secrets.YARN_TOKEN }}
|
||||
```
|
||||
|
||||
# License
|
||||
|
||||
The scripts and documentation in this project are released under the [MIT License](LICENSE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue