Merge branch 'KhaledMohamedP/main' #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
- name: Bundle 📦 | |
run: | | |
npm install | |
npm run build | |
- name: Install and Build Demo 🔧 | |
working-directory: demo | |
run: | | |
npm install | |
npm run build | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS }} | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: demo/build # The folder the action should deploy. | |
CLEAN: true # Automatically remove deleted files from the deploy branch | |
- name: Publish 📤 | |
uses: JS-DevTools/npm-publish@v1 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} |