Skip to content

Commit 31fc0dc

Browse files
committed
test what happens without checking if it already exists
1 parent fe1e0cc commit 31fc0dc

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

.github/workflows/npm-publish.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ jobs:
2727
run: yarn build
2828
working-directory: packages/country-config
2929

30-
- name: Check if version exists on npm
31-
id: check-version
32-
run: |
33-
PACKAGE_VERSION=$(node -p "require('./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
30+
# - name: Check if version exists on npm
31+
# id: check-version
32+
# run: |
33+
# PACKAGE_VERSION=$(node -p "require('./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
4141

4242
- name: Authenticate to npm
4343
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

packages/country-config/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# @opencrvs/mosip
2+
3+
This package contains helpers to country-config for using the [OpenCRVS-MOSIP API](https://github.com/opencrvs/mosip).

0 commit comments

Comments
 (0)