diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d893999 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +name: Publish Package to npmjs + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v3 + with: + node-version: '16.x' + registry-url: 'https://registry.npmjs.org' + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: fe38b38d-d305-4173-b643-0ada4ec0818a diff --git a/package.json b/package.json index 661c3c4..76a49dd 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "@map-component/tmap-types", - "version": "0.1.1", + "version": "0.1.2", "main": "index.d.js", "repository": "", "author": "", "license": "MIT" -} \ No newline at end of file +}