fix(dependencies): Update deps #209
This file contains hidden or 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/CD | |
| env: | |
| CI: true | |
| on: | |
| push: | |
| branches: [ master ] | |
| paths-ignore: | |
| - 'docs/**' | |
| - '*.md' | |
| jobs: | |
| ci-cd: | |
| if: "!contains(github.event.head_commit.message, 'skip ci')" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18.14 | |
| registry-url: https://registry.npmjs.org/ | |
| - name: NPM Install | |
| run: npm install | |
| - name: Build | |
| run: npm run build | |
| - name: Tests (with coverage) | |
| run: npm test -- --coverage | |
| - name: Coveralls GitHub Action | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build website (Github pages) | |
| run: npm run build-doc --if-present | |
| - name: Publish website on GitHub Pages | |
| uses: crazy-max/ghaction-github-pages@v3 | |
| with: | |
| build_dir: dist-ghpages | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Prepare distribution | |
| run: | | |
| node scripts/generate-exports.js | |
| cp package.json README.md LICENSE.txt CHANGELOG.md CONTRIBUTING.md CODE_OF_CONDUCT.md ./dist | |
| - name: Publish | |
| run: | | |
| npm pack | |
| npx semantic-release | |
| working-directory: ./dist | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |