mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-12 23:21:12 +00:00
Expose the ability to select different architectures
This commit is contained in:
parent
e565252a9d
commit
3d0361d465
7 changed files with 84 additions and 35 deletions
14
README.md
14
README.md
|
@ -7,7 +7,7 @@
|
|||
This action sets by node environment for use in actions by:
|
||||
|
||||
- optionally downloading and caching a version of node - npm by version spec and add to PATH
|
||||
- registering problem matchers for error output
|
||||
- registering problem matchers for error output
|
||||
|
||||
# Usage
|
||||
|
||||
|
@ -100,6 +100,18 @@ steps:
|
|||
- run: npm rebuild && npm run prepare --if-present
|
||||
```
|
||||
|
||||
Specifying a different architecture than the system architecture:
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '10.x'
|
||||
node-arch: 'x86'
|
||||
- run: npm install
|
||||
- run: npm test
|
||||
```
|
||||
|
||||
|
||||
# License
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue