You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everything else, except a few [abbreviations](./config.js), will not trigger a new version / release.
41
+
Except a few [aliases and abbreviations](./config.js), other prefixes will not trigger a new version / release.
42
+
43
+
Example
44
+
-------
45
+
46
+
As a step during GitHub Actions:
47
+
48
+
```yml
49
+
- name: Make release
50
+
env:
51
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
53
+
run: |
54
+
VERSION=$(npx aspublish --version)
55
+
if [ -z "$VERSION" ]; then
56
+
echo "Changes do not trigger a release"
57
+
else
58
+
echo "Publishing new version: $VERSION"
59
+
npx aspublish
60
+
fi
61
+
```
62
+
63
+
Or, if obtaining the version upfront is not necessary:
64
+
65
+
```yml
66
+
- name: Make release
67
+
env:
68
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
70
+
run: npx aspublish
71
+
```
72
+
73
+
See this repository's [publish.yml](.github/workflows/publish.yml) for a complete configuration (replace `node bin/aspublish.js` with `npx aspublish`).
0 commit comments