Merge branch 'ng16-update-fix-demo' #54
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: CI Master | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-library: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- uses: einaregilsson/build-number@v3 | |
with: | |
token: ${{secrets.github_token}} | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '18.16.0' | |
registry-url: https://registry.npmjs.org | |
- name: Install dependencies | |
run: | | |
npm ci --legacy-peer-deps | |
npm uninstall -g @angular/cli | |
npm install -g @angular/cli | |
- name: Set Version | |
run: sed -i "s/\[ci-version\]/${GITHUB_REF##*/}-$BUILD_NUMBER/g" ./version.ts | |
- name: Build Library | |
run: ng build --project sc-clr-autocomplete | |
- name: Publish Library to NPM | |
run: npm publish ./dist/sc-clr-autocomplete | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} | |
- name: Publish Github Pages | |
run: ng deploy --project demo --base-href=/sc-clr-autocomplete/ --name='Scenius CI (GitHub)' --email='ci_github@scenius.nl' --message='Deploy latest master branch to GitHub Pages' --repo=https://${{secrets.GITHUB_PAGES_TOKEN}}@github.com/scenius-software/sc-clr-autocomplete.git |