We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dcdc2c commit d48f568Copy full SHA for d48f568
.github/workflows/publish.yml
@@ -1,7 +1,8 @@
1
name: publish to npm
2
on:
3
- release:
4
- types: [published]
+ push:
+ tags:
5
+ - v*
6
7
jobs:
8
publish-npm:
@@ -14,13 +15,7 @@ jobs:
14
15
registry-url: https://registry.npmjs.org/
16
- name: Check release validity
17
run: sh .github/scripts/check-release.sh
- - name: Publish with latest tag
18
- if: "!github.event.release.prerelease"
+ - name: Publish
19
run: npm publish .
20
env:
21
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
22
- - name: Publish with strapi_v3 tag
23
- if: "github.event.release.prerelease"
24
- run: npm publish . --tag strapi_v3
25
- env:
26
- NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
0 commit comments