fix: upgrade wrangler #196
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: Client | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'packages/client/**' | |
- '.github/workflows/client.yml' | |
- 'pnpm-lock.yaml' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'packages/client/**' | |
- '.github/workflows/client.yml' | |
- 'pnpm-lock.yaml' | |
jobs: | |
check: | |
name: Typecheck client | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- run: pnpm install | |
- name: Typecheck | |
uses: gozala/[email protected] | |
with: | |
project: packages/client/tsconfig.json | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- run: pnpm install | |
- name: Test (ES, Web, CJS, Bundlesize) | |
run: pnpm --filter nftstorage.link test | |
- name: Coverage | |
run: pnpm --filter nftstorage.link coverage | |
release: | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
name: Release | |
runs-on: ubuntu-latest | |
needs: | |
- check | |
- test | |
steps: | |
- uses: GoogleCloudPlatform/release-please-action@v3 | |
id: tag-release | |
with: | |
path: packages/client | |
token: ${{ secrets.GITHUB_TOKEN }} | |
release-type: node | |
monorepo-tags: true | |
package-name: nftstorage.link | |
- uses: actions/checkout@v2 | |
if: ${{ steps.tag-release.outputs.releases_created }} | |
- uses: pnpm/[email protected] | |
if: ${{ steps.tag-release.outputs.releases_created }} | |
with: | |
version: 6.32.x | |
- uses: actions/setup-node@v2 | |
if: ${{ steps.tag-release.outputs.releases_created }} | |
with: | |
node-version: 16 | |
registry-url: https://registry.npmjs.org/ | |
cache: 'pnpm' | |
- run: pnpm install | |
if: ${{ steps.tag-release.outputs.releases_created }} | |
- name: NPM Publish | |
if: ${{ steps.tag-release.outputs.releases_created }} | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} | |
run: | | |
cd packages/client | |
npm publish --access=public |