update yarn version & fix typescript version #49
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: Release | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')" | |
| steps: | |
| - name: Checkout Branch | |
| uses: actions/checkout@v2 | |
| - name: Prepare repository | |
| run: git fetch --unshallow --tags | |
| - name: Use Node.js 20.x | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20.x | |
| - name: Restore Cached node_modules | |
| uses: actions/cache@v3 | |
| with: | |
| key: ${{ runner.os }}-node_modules | |
| path: node_modules | |
| - name: Install dependencies | |
| uses: bahmutov/npm-install@v1 | |
| with: | |
| install-command: yarn install | |
| - name: Cache node_modules | |
| uses: actions/cache@v3 | |
| with: | |
| key: ${{ runner.os }}-node_modules | |
| path: node_modules | |
| - name: Build Library | |
| run: npx ng build | |
| - name: Create Release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| run: yarn release |