chore: fix eslint #38
This file contains 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: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_REMOTE_ONLY: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 7 | |
- name: Install | |
run: pnpm i --frozen-lockfile | |
- name: Create Release Pull Request or Publish | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
publish: pnpm publish-packages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Send a Discord webhook if a publish happens | |
if: steps.changesets.outputs.published == 'true' | |
uses: tsickert/[email protected] | |
with: | |
webhook-url: ${{ secrets.CHANGESETS_DISCORD_WEBHOOK }} | |
content: | | |
<@&1087023813599973528> | |
New package versions were published! | |
[**View Releases**](<https://github.com/lukadev-0/discokit/releases>) |