Skip to content

Commit

Permalink
feat(github): add github workflow to publish alpha dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuss committed Nov 11, 2022
1 parent 8c402b7 commit 92eb162
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/npm-publish-alpha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: NPM Publish
on:
push:
branches:
- feature-dashboard-alpha
jobs:
publish-to-npm:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
registry-url: 'https://registry.npmjs.org'

- name: Install and Build
run: |
npm ci
npm run build
- name: Publish @iot-app-kit/dashboard
uses: JS-DevTools/npm-publish@v1
with:
package: './packages/dashboard/package.json'
token: ${{ secrets.NPM_TOKEN }}
tag: 'alpha'

0 comments on commit 92eb162

Please sign in to comment.