chore(deps): update all non-major dependencies #104
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: CD | |
| on: | |
| pull_request: | |
| types: | |
| - closed | |
| branches: | |
| - main | |
| jobs: | |
| create-repository-release: | |
| if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref , 'release/') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Get Version | |
| id: version | |
| env: | |
| BRANCH_NAME: ${{ github.event.pull_request.head.ref }} | |
| run: echo "VERSION=${BRANCH_NAME:8}" >> $GITHUB_OUTPUT | |
| - name: Create repository release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: gh release create ${{ steps.version.outputs.VERSION }} --generate-notes | |
| publish-packages: | |
| if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref , 'release/') | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup PNPM | |
| uses: pnpm/action-setup@v4.1.0 | |
| with: | |
| version: latest | |
| - name: Setup Node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| cache-dependency-path: package.json | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build | |
| run: pnpm build | |
| - name: Publish package | |
| run: pnpm publish:package | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |