Comments (1)
For reference, I solved the issue without using the .npmrc
file and with the script as follows (check here):
name: Deploy to Github Pages
on:
push:
branches:
- 'main'
jobs:
Deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
always-auth: true
- name: Install and Build 🔧
run: |
npm config set '@mattborghi:registry' https://node.bit.dev
npm config set @bit:registry https://node.bit.dev
npm install
- name: Deploy with gh-pages 🚀 # https://github.com/tschaub/gh-pages/pull/368
run: | # add the git pull... when merging pull requests
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git pull origin main
npm run deploy -- -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
I added these lines for installing bit and my custom components (as shown here)
npm config set '@mattborghi:registry' https://node.bit.dev
npm config set @bit:registry https://node.bit.dev
Then I followed some guidelines from the github documentation in order to deploy to github pages using gh-pages
.
from bit-with-github-actions.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bit-with-github-actions.