File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : workflow - publish npm comanda sdk package
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - development
8+
9+ jobs :
10+ publish :
11+ runs-on : ubuntu-latest
12+
13+ defaults :
14+ run :
15+ working-directory : Artifacts/Comanda.Internal.Sdk
16+
17+ steps :
18+ - name : checkout repository
19+ uses : actions/checkout@v4
20+
21+ - name : setup node.js environment
22+ uses : actions/setup-node@v4
23+ with :
24+ node-version : 20
25+ registry-url : " https://registry.npmjs.org"
26+
27+ - name : install dependencies
28+ run : npm install
29+
30+ - name : build
31+ run : npm run build
32+
33+ - name : run tests
34+ run : npm test
35+
36+ - name : prepare git for version bump
37+ run : |
38+ git config user.name "github-actions[bot]"
39+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
40+ git add -A
41+ git commit -m "ci: prepare repository for version bump" || echo "no changes to commit"
You can’t perform that action at this time.
0 commit comments