Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 3e4bee3e9d344f738eb9c179921f75ccd8fb79c5 85 lines 2.4 kB view raw
1name: Release 2on: 3 push: 4 branches: 5 - main 6 7jobs: 8 release: 9 name: Release 10 runs-on: ubuntu-24.04 11 timeout-minutes: 20 12 permissions: 13 contents: write 14 id-token: write 15 issues: write 16 repository-projects: write 17 deployments: write 18 packages: write 19 pull-requests: write 20 steps: 21 - name: Checkout Repo 22 uses: actions/checkout@v4 23 with: 24 fetch-depth: 0 25 26 - name: Setup Node 27 uses: actions/setup-node@v4 28 with: 29 node-version: 18 30 31 - name: Setup pnpm 32 uses: pnpm/action-setup@v3 33 with: 34 version: 9 35 run_install: false 36 37 - name: Get pnpm store directory 38 id: pnpm-store 39 run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT 40 41 - name: Use pnpm store 42 uses: actions/cache@v4 43 id: pnpm-cache 44 with: 45 path: | 46 ~/.cache/Cypress 47 ${{ steps.pnpm-store.outputs.pnpm_cache_dir }} 48 key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} 49 restore-keys: | 50 ${{ runner.os }}-pnpm- 51 52 - name: Install Dependencies 53 run: pnpm install 54 55 - name: PR or Publish 56 id: changesets 57 uses: changesets/action@v1.4.6 58 with: 59 version: pnpm changeset:version 60 publish: pnpm changeset:publish 61 env: 62 NPM_TOKEN: ${{ secrets.NPM_TOKEN }} 63 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 64 65 - name: Notify discord 66 id: discord-msg 67 if: steps.changesets.outputs.published == 'true' 68 uses: ./.github/actions/discord-message 69 with: 70 publishedPackages: ${{ steps.changesets.outputs.publishedPackages }} 71 env: 72 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 73 NPM_TOKEN: ${{ secrets.NPM_TOKEN }} 74 DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} 75 76 - name: Publish Prerelease 77 if: steps.changesets.outputs.published != 'true' 78 env: 79 NPM_TOKEN: ${{ secrets.NPM_TOKEN }} 80 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 81 run: | 82 npm config set "//registry.npmjs.org/:_authToken" "$NPM_TOKEN" 83 git reset --hard origin/main 84 pnpm changeset version --no-git-tag --snapshot canary 85 pnpm changeset publish --no-git-tag --snapshot canary --tag canary