Merge pull request #5 from ngxpert/ng-update-18 #13
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: Make a Release and Deploy on GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
component: true | |
- name: Install dependencies | |
env: | |
HUSKY_SKIP_INSTALL: true | |
run: npm ci | |
- name: NPM install, build and deploy | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
npm run build | |
npm run build:lib | |
npx semantic-release | |
npx angular-cli-ghpages --name="mr. Dharmen's Bot" [email protected] --dir=dist/cmdk/browser |