chore(README.md): update example #51
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: Deploy | |
on: | |
push: | |
branches: main | |
pull_request: | |
branches: main | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2.2.4 | |
with: | |
version: 8.5.1 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- name: Setup deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: '1.35.3' | |
- name: Run "pnpm install" | |
run: pnpm install | |
- name: Run "pnpm build" | |
run: pnpm build | |
- name: Run "pnpm test" | |
run: pnpm test | |
- name: Run "pnpm script:remove-unnecessary" | |
run: pnpm script:remove-unnecessary | |
- name: Upload to Deno Deploy | |
uses: denoland/deployctl@v1 | |
with: | |
project: 'none' | |
entrypoint: 'main.js' | |
root: './dist' |