Skip to content

Commit

Permalink
added publish to npm to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TheShiveshNetwork committed May 27, 2024
1 parent 21528d9 commit 684b233
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: publish on github

on:
push:
branches:
- main

jobs:
publish-gpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20"
- run: npm install
- run: npm run test
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.ELEMENTIQUE_TOKEN}}
3 changes: 1 addition & 2 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Deploy
name: Build and Deploy Storybook
on:
push:
branches:
Expand All @@ -15,7 +15,6 @@ jobs:
- name: Install and Build 🔧
run: | # Install npm packages and build the Storybook files
npm install
npm run build
npm run build-storybook
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
Expand Down

0 comments on commit 684b233

Please sign in to comment.