File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-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
+ dependencies-to-update :
14
+ description : ' csv of dependencies to update with the dist-tag'
15
+ required : false
16
+ default : ' @adobe/aio-lib-core-config,@adobe/aio-lib-core-errors,@adobe/aio-lib-core-logging'
17
+
18
+ jobs :
19
+ checkout :
20
+ name : checkout
21
+ runs-on : ubuntu-latest
22
+ steps :
23
+ - uses : actions/checkout@v2
24
+ - run : |
25
+ git config user.name github-actions
26
+ git config user.email github-actions@github.com
27
+ - uses : actions/setup-node@v1
28
+ with :
29
+ node-version : 16
30
+ - run : |
31
+ npm install
32
+ npm test
33
+ - name : Update your package.json with an npm pre-release version
34
+ id : pre-release-version
35
+ uses : adobe/update-prerelease-npm-version@v1.0.0
36
+ with :
37
+ pre-release-tag : ${{ github.event.inputs.pre-release-tag }}
38
+ dependencies-to-update : ${{ github.event.inputs.dependencies-to-update }}
39
+ dependencies-to-update-version-tag : ${{ github.event.inputs.dist-tag }}
40
+ - run : echo pre-release-version - ${{ steps.pre-release-version.outputs.pre-release-version }}
41
+ - uses : JS-DevTools/npm-publish@v1
42
+ with :
43
+ token : ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
44
+ tag : ${{ github.event.inputs.dist-tag }}
45
+ access : ' public'
You can’t perform that action at this time.
0 commit comments