feat(data-provider): add GitHub Actions workflow for building and publishing package

chore(data-provider): update package version to 0.1.2
chore(data-provider): update repository URL in package.json
This commit is contained in:
Daniel Avila 2023-07-30 11:37:03 -04:00 committed by Danny Avila
parent 545342bbcb
commit b5aadc4b6d
2 changed files with 37 additions and 3 deletions

34
.github/workflows/data-provider.yml vendored Normal file
View file

@ -0,0 +1,34 @@
name: Node.js Package
on:
push:
branches:
- main
paths:
- 'packages/data-provider/package.json'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: cd packages/data-provider && npm ci
- run: cd packages/data-provider && npm run build
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- run: cd packages/data-provider && npm ci
- run: cd packages/data-provider && npm run build
- run: cd packages/data-provider && npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}