chore: upgrade deps #1624
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: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- run: npm i -g --force corepack && corepack enable | |
- run: pnpm install | |
- run: pnpm dev:prepare | |
- run: pnpm lint | |
- run: pnpm typecheck | |
- run: pnpm build | |
- run: pnpm test | |
- name: Publish | |
run: pnpx pkg-pr-new publish --compact --no-template --pnpm | |
release-edge: | |
if: | | |
github.event_name == 'push' && | |
!contains(github.event.head_commit.message, '[skip-release]') && | |
!startsWith(github.event.head_commit.message, 'docs') | |
needs: | |
- test | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- run: npm i -g --force corepack && corepack enable | |
- name: Install dependencies | |
run: pnpm install | |
- name: Release Edge | |
run: bash ./.github/scripts/release-edge.sh | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}} |