We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a3ce83 commit ca2e283Copy full SHA for ca2e283
README.md
@@ -83,6 +83,24 @@ steps:
83
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84
```
85
86
+Use private packages:
87
+```yaml
88
+steps:
89
+- uses: actions/checkout@master
90
+- uses: actions/setup-node@v1
91
+ with:
92
+ node-version: '10.x'
93
+ registry-url: 'https://registry.npmjs.org'
94
+# Skip post-install scripts here, as a malicious
95
+# script could steal NODE_AUTH_TOKEN.
96
+- run: npm install --ignore-scripts
97
+ env:
98
+ NODE_AUTH_TOKEN: ${{ secrets.YARN_TOKEN }}
99
+# `npm rebuild` will run all those post-install scritps for us.
100
+- run: npm rebuild && npm run prepare --if-present
101
+```
102
+
103
104
# License
105
106
The scripts and documentation in this project are released under the [MIT License](LICENSE)
0 commit comments