Skip to content

Commit

Permalink
Merge pull request #67 from vietmap-company/configureNPMAutoRelease
Browse files Browse the repository at this point in the history
[feat:(ci-cd)]: Configure github action workflow which release to npm…
  • Loading branch information
thanhdt-vietmap authored Feb 22, 2024
2 parents a18e320 + 889a223 commit 58ab0de
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/npm-release-actions.yml
Original file line number Diff line number Diff line change
@@ -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 }}
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand All @@ -11,10 +11,9 @@
"maps",
"ios",
"android",
"maplibre",
"react-native",
"mapbox",
"vietmap"
"vietmap",
"react-native map"
],
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 58ab0de

Please sign in to comment.