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
Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
name: Publish to NPM
2
2
3
-
#on:
4
-
# release:
5
-
# types:
6
-
# - published
7
-
# - edited
3
+
on:
4
+
release:
5
+
types:
6
+
- published
7
+
- edited
8
8
9
9
jobs:
10
10
deploy:
@@ -41,13 +41,13 @@ jobs:
41
41
- name: Publish to npm
42
42
run: |
43
43
if [ "${{ github.event.release.prerelease }}" == "false" ]; then
44
-
npm publish --access public --dry-run
45
-
npm publish --access public
46
-
echo "::notice title=Published ${{ github.ref_name }} to @${{ github.repository }}::This is a stable release published to the default 'latest' npm tag"
44
+
npm publish --access public --tag next --dry-run
45
+
npm publish --access public --tag next
46
+
echo "::notice title=Published ${{ github.ref_name }} to @${{ github.repository }}::This is a special next release published to the 'next' npm tag"
47
47
else
48
-
npm publish --access public --tag ${{ env.PRERELEASE_TAG }} --dry-run
49
-
npm publish --access public --tag ${{ env.PRERELEASE_TAG }}
50
-
echo "::notice title=Published ${{ github.ref_name }} to @${{ github.repository }}@${{ env.PRERELEASE_TAG }}::This is a pre-release published to the '${{ env.PRERELEASE_TAG }}' npm tag"
48
+
npm publish --access public --tag next-${{ env.PRERELEASE_TAG }} --dry-run
49
+
npm publish --access public --tag next-${{ env.PRERELEASE_TAG }}
50
+
echo "::notice title=Published ${{ github.ref_name }} to @${{ github.repository }}@${{ env.PRERELEASE_TAG }}::This is a pre-release published to the 'next-${{ env.PRERELEASE_TAG }}' npm tag"
0 commit comments