Skip to content

An open source alternative to Tableau. Embeddable visual analytic

chore: add release workflow (#256)

Observed Observerfc2aa8f025e4
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 00000000..894c4e3f
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,24 @@
+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.x'
+ registry-url: 'https://registry.npmjs.org'
+ - name: Install deps
+ run: yarn install
+ - name: npm package build
+ run: yarn workspace @kanaries/graphic-walker build
+ - name: Web app (playground) build
+ run: yarn workspace playground build
+ - run: cd ./packages/graphic-walker
+ - run: npm publish
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
diff --git a/packages/graphic-walker/package.json b/packages/graphic-walker/package.json
index c6b3f2ca..b8b713e7 100644
--- a/packages/graphic-walker/package.json
+++ b/packages/graphic-walker/package.json
@@ -1,6 +1,6 @@
{
"name": "@kanaries/graphic-walker",
- "version": "0.4.31",
+ "version": "0.4.32",
"scripts": {
"dev:front_end": "vite --host",
"dev": "npm run dev:front_end",
diff --git a/packages/playground/package.json b/packages/playground/package.json
index 17660959..e8b4bd06 100644
--- a/packages/playground/package.json
+++ b/packages/playground/package.json
@@ -11,7 +11,7 @@
"preview": "vite preview"
},
"dependencies": {
- "@kanaries/graphic-walker": "0.4.31",
+ "@kanaries/graphic-walker": "0.4.32",
"@vercel/analytics": "^1.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"