File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : publish-prerelease
2
+ on :
3
+ workflow_dispatch :
4
+ inputs :
5
+ pre-release-tag :
6
+ description : ' The pre-release tag use in the version'
7
+ required : false
8
+ default : ' pre'
9
+ dist-tag :
10
+ description : ' The dist-tag use'
11
+ required : false
12
+ default : ' next'
13
+
14
+ jobs :
15
+ checkout :
16
+ name : checkout
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/checkout@v2
20
+ - run : |
21
+ git config user.name github-actions
22
+ git config user.email github-actions@github.com
23
+ - uses : actions/setup-node@v1
24
+ with :
25
+ node-version : 16
26
+ - run : |
27
+ npm install
28
+ npm test
29
+ - name : Update your package.json with an npm pre-release version
30
+ id : pre-release-version
31
+ uses : adobe/update-prerelease-npm-version@v1.0.0
32
+ with :
33
+ pre-release-tag : ${{ github.event.inputs.pre-release-tag }}
34
+ dependencies-to-update : ${{ github.event.inputs.dependencies-to-update }}
35
+ dependencies-to-update-version-tag : ${{ github.event.inputs.dist-tag }}
36
+ - run : echo pre-release-version - ${{ steps.pre-release-version.outputs.pre-release-version }}
37
+ - uses : JS-DevTools/npm-publish@v1
38
+ with :
39
+ token : ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
40
+ tag : ${{ github.event.inputs.dist-tag }}
41
+ access : ' public'
You can’t perform that action at this time.
0 commit comments