Skip to content

Commit f7c8212

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

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

.github/workflows/npm-publish.yml

-13
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,11 @@ 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
41-
4230
- name: Authenticate to npm
4331
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
4432
working-directory: packages/country-config
4533

4634
- name: Publish to npm
47-
if: steps.check-version.outputs.version-exists == 'false'
4835
run: npm publish --access public
4936
working-directory: packages/country-config
5037
env:

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)