We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7263aad commit a01ad0bCopy full SHA for a01ad0b
.github/workflows/npm-publish.yml renamed to .github/workflows/release.yml
@@ -1,4 +1,4 @@
1
-name: NPM Package
+name: Release
2
3
on:
4
push:
@@ -14,8 +14,6 @@ jobs:
14
with:
15
fetch-depth: 0
16
17
- - run: npm install
18
-
19
- name: Extract version
20
id: version
21
run: |
@@ -30,17 +28,14 @@ jobs:
30
28
exit 1
31
29
fi
32
33
- - name: Publish to NPM
34
- uses: JS-DevTools/npm-publish@v1
35
- with:
36
- token: ${{ secrets.NPM_TOKEN }}
37
38
- name: Create a git tag
+ if: success()
39
run: git tag $NEW_VERSION && git push --tags
40
env:
41
NEW_VERSION: ${{ steps.version.outputs.version }}
42
43
- name: GitHub release
44
uses: actions/create-release@v1
45
id: create_release
46
0 commit comments