This repository was archived by the owner on Mar 13, 2025. It is now read-only.
Deprecate Miniflare v2 (#798) #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: Release | |
| on: | |
| push: | |
| branches: | |
| - master | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| release: | |
| if: ${{ github.repository_owner == 'cloudflare' }} | |
| name: Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js 12.x | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 16.13 | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Run prepublish steps | |
| run: npm run prepublishOnly | |
| - name: Create Version PR or Publish to NPM | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| publish: npx changeset publish | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
| NODE_ENV: "production" |