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": {