We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2da037e commit 4b80a96Copy full SHA for 4b80a96
README.md
@@ -2,15 +2,22 @@
2
3
Use e.g. in a `package.json` or github action
4
5
+### In your package.json
6
```json
7
{
8
"scripts": {
9
"prepublishOnly": "npx --yes needle-tools/npm-publish-helper",
- "compile": "npx --yes needle-tools/npm-publish-helper compile"
10
+ "compile": "npx --yes needle-tools/npm-publish-helper compile",
11
},
12
}
13
```
14
15
+### Publish via github workflow
16
+```yml
17
+ - name: Run publish command # publish a new version with a tag + git short hash
18
+ run: npx . publish "path/to/directory" --webhook "${{ secrets.DISCORD_WEBHOOK }}" --access-token "${{ secrets.NPM_TOKEN }}" --version+hash --version+tag --tag --tag "${{ github.ref_name }}"
19
+```
20
+
21
22
23
# Contact ✒️
0 commit comments