File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches :
66 - master
77 - development
8+ paths :
9+ - ' Artifacts/Comanda.Internal.Sdk/**'
10+
11+ pull_request :
12+ branches :
13+ - master
14+ - development
15+ paths :
16+ - ' Artifacts/Comanda.Internal.Sdk/**'
817
918jobs :
1019 publish :
1120 runs-on : ubuntu-latest
1221
1322 defaults :
14- run :
23+ run :
1524 working-directory : Artifacts/Comanda.Internal.Sdk
1625
1726 steps :
3948 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
4049 git add -A
4150 git commit -m "ci: prepare repository for version bump" || echo "no changes to commit"
51+
52+ - name : bump version
53+ run : |
54+ if [ "${{ github.ref_name }}" = "master" ]; then
55+ npm version minor -m "ci: bump minor version to %s"
56+ elif [ "${{ github.ref_name }}" = "development" ]; then
57+ npm version patch -m "ci: bump patch version to %s"
58+ fi
59+
60+ - name : publish to npm
61+ run : npm publish --access public
62+ env :
63+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
64+
65+ - name : prepare git for version bump
66+ run : |
67+ git config user.name "github-actions[bot]"
68+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
69+ git add -A
70+ 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