From 889a223c2b84d359dd45894e0eb5fdd962479b61 Mon Sep 17 00:00:00 2001 From: thanhdang198 Date: Thu, 22 Feb 2024 10:00:46 +0700 Subject: [PATCH] [feat:(ci-cd)]: Configure github action workflow which release to npm store --- .github/workflows/npm-release-actions.yml | 18 ++++++++++++++++++ package.json | 7 +++---- 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/npm-release-actions.yml diff --git a/.github/workflows/npm-release-actions.yml b/.github/workflows/npm-release-actions.yml new file mode 100644 index 00000000..1a581625 --- /dev/null +++ b/.github/workflows/npm-release-actions.yml @@ -0,0 +1,18 @@ +name: Publish Package to npmjs +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v3 + with: + node-version: '18.3.0' + registry-url: 'https://registry.npmjs.org' + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 6d02d337..394b8f7c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@vietmap/vietmap-gl-react-native", "description": "A Vietmap GL Native plugin for creating maps in React Native", - "version": "0.0.1-pre", + "version": "0.0.3", "publishConfig": { "access": "public" }, @@ -11,10 +11,9 @@ "maps", "ios", "android", - "maplibre", "react-native", - "mapbox", - "vietmap" + "vietmap", + "react-native map" ], "license": "MIT", "repository": {