Commit 2e4ca51 1 parent 01432f6 commit 2e4ca51 Copy full SHA for 2e4ca51
File tree 9 files changed +441
-6
lines changed
9 files changed +441
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish country-config to npm
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ publish :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v2
15
+
16
+ - name : Set up Node.js
17
+ uses : actions/setup-node@v2
18
+ with :
19
+ node-version : " 16"
20
+ registry-url : " https://registry.npmjs.org/"
21
+
22
+ - name : Install dependencies
23
+ run : yarn install
24
+ working-directory : packages/country-config
25
+
26
+ - name : Build
27
+ run : yarn build
28
+ working-directory : packages/country-config
29
+
30
+ - name : Check if version exists on npm
31
+ id : check-version
32
+ run : |
33
+ PACKAGE_VERSION=$(node -p "require('./packages/country-config/package.json').version")
34
+ if npm view @opencrvs/mosip@$PACKAGE_VERSION > /dev/null 2>&1; then
35
+ echo "Version $PACKAGE_VERSION already exists on npm."
36
+ exit 0
37
+ else
38
+ echo "Version $PACKAGE_VERSION does not exist on npm."
39
+ fi
40
+ working-directory : packages/country-config
41
+
42
+ - name : Publish to npm
43
+ if : steps.check-version.outputs.version-exists == 'false'
44
+ run : npm publish
45
+ working-directory : packages/country-config
46
+ env :
47
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
1
+ ! build
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " @opencrvs-mosip/country-config " ,
3
- "version" : " 1.0.0 " ,
2
+ "name" : " @opencrvs/mosip " ,
3
+ "version" : " 1.7.0-alpha.1 " ,
4
4
"license" : " MPL-2.0" ,
5
5
"main" : " ./build/index.js" ,
6
6
"exports" : {
File renamed without changes.
Original file line number Diff line number Diff line change 1
- export * from "./form-definitions " ;
1
+ export * from "./forms " ;
2
2
export * from "./events" ;
You can’t perform that action at this time.
0 commit comments