chore: set version to 0.3.0-next.5 and update release config #17
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: Lib Builder | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - "v*" | |
| branches: | |
| - main | |
| - master | |
| - next | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [18.x] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| with: | |
| token: ${{ env.GITHUB_TOKEN }} | |
| - name: Node.js setup ${{ matrix.node-version }} | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| # node-version-file: '.nvmrc' | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| npm install -g typescript | |
| - name: Build | |
| id: app_build | |
| run: | | |
| npm install | |
| npm run build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: production-files | |
| path: dist | |
| deploy: | |
| runs-on: ubuntu-latest | |
| name: Deploy | |
| needs: [build] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Create Deploy Directory | |
| run: mkdir -p dist | |
| - name: Download artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: production-files | |
| path: ./dist | |
| - name: Setup node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| - name: Install dependencies | |
| run: npm install | |
| - run: npm install -g semantic-release@v19.0.5 | |
| - run: npm install -g @semantic-release/exec | |
| - run: npm install -g @semantic-release/git | |
| - run: npm install -g @semantic-release/release-notes-generator | |
| - run: npm install -g @semantic-release/changelog | |
| - run: npm install -g @semantic-release/github | |
| - name: Release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| #sudo apt-get install -y jq | |
| #chmod +x ./scripts/prepareCMD.sh | |
| run: | | |
| semantic-release | |
| cleanup: | |
| name: Cleanup actions | |
| needs: | |
| - deploy | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: "♻️ remove build artifacts" | |
| uses: geekyeggo/delete-artifact@v1 | |
| with: | |
| name: production-files |