Skip to content

Commit 22662e7

Browse files
feature: this commit introduces workflow to publish comanda sdk npm package
1 parent 4ffca2d commit 22662e7

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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"

0 commit comments

Comments
 (0)