build: publish 0.33.0 #91
Workflow file for this run
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: | |
| tags: | |
| - '[0-9]+.[0-9]+.[0-9]+*' | |
| workflow_dispatch: | |
| permissions: | |
| id-token: write | |
| contents: write | |
| packages: write | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository_owner == 'koobiq' }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/setup-node | |
| - name: Build Packages | |
| run: pnpm run build | |
| - name: Configure NPM Auth | |
| run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" > ~/.npmrc | |
| - name: Publish Packages to NPM | |
| run: pnpm run release:publish --no-git-checks | |
| - name: Parse Changelog | |
| id: changelog | |
| uses: ocavue/changelog-parser-action@v1 | |
| with: | |
| removeMarkdown: false | |
| filePath: './CHANGELOG.md' | |
| - name: Upload Binaries to Release | |
| uses: svenstaro/upload-release-action@v2 | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| tag: ${{ steps.changelog.outputs.latestVersion }} | |
| file: ./ | |
| body: | | |
| ${{ steps.changelog.outputs.latestBody }} | |
| - name: Notify Mattermost | |
| uses: mattermost/action-mattermost-notify@2.0.0 | |
| with: | |
| MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }} | |
| MATTERMOST_CHANNEL: ${{ secrets.MM_CHANNEL_NAME }} | |
| MATTERMOST_USERNAME: ${{ secrets.MM_BOT_NAME }} | |
| TEXT: | | |
| ## ${{ steps.changelog.outputs.latestVersion }} | |
| ${{ steps.changelog.outputs.latestBody }} |