File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ permissions :
7
+ contents : write
8
+
9
+ jobs :
10
+ publish-npm :
11
+ runs-on : ubuntu-latest
12
+ environment : npm
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - uses : actions/setup-node@v3
16
+ with :
17
+ node-version : 20
18
+ registry-url : https://registry.npmjs.org/
19
+ - name : run tests
20
+ run : |
21
+ npm i -g @sap/cds-dk
22
+ npm i
23
+ npm run lint
24
+ npm run test
25
+ - name : get version
26
+ id : package-version
27
+ uses :
martinbeentjes/[email protected]
28
+ - name : parse changelog
29
+ id : parse-changelog
30
+
31
+ with :
32
+ version : ' ${{ steps.package-version.outputs.current-version }}'
33
+ - name : create a GitHub release
34
+ uses : ncipollo/release-action@v1
35
+ with :
36
+ tag : ' v${{ steps.package-version.outputs.current-version }}'
37
+ body : ' ${{ steps.parse-changelog.outputs.body }}'
38
+ - run : npm publish --access public
39
+ env :
40
+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
You can’t perform that action at this time.
0 commit comments