refactor(port-hooks): move to deno 2 and refactor usages #6
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: 🔍 Test & Deploy Search Port | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "packages/port-search/**" | |
push: | |
branches: | |
- main | |
paths: | |
- "packages/port-search/**" | |
tags: | |
- 'hyper-port-search@*' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
deno-version: [2.x] | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- name: 🦕 Setup Deno | |
uses: denoland/setup-deno@v2 | |
with: | |
deno-version: ${{ matrix.deno-version }} | |
- name: ⚡ Run Tests | |
working-directory: packages/port-search | |
run: | | |
deno task test | |
env: | |
CI: true | |
publish: | |
if: startsWith(github.ref, 'refs/tags/hyper-port-search@') | |
needs: [test] | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- name: 🦕 Setup Deno | |
uses: denoland/setup-deno@v2 | |
with: | |
deno-version: v2.x | |
- name: ✨ Publish to JSR | |
working-directory: packages/port-search | |
run: | | |
deno publish --allow-slow-types | |
# - name: 🥚 Setup Eggs CLI | |
# run: | | |
# deno install -A -f --unstable --no-check https://x.nest.land/[email protected]/eggs.ts | |
# export PATH="/home/runner/.deno/bin:$PATH" | |
# eggs link ${{ secrets.NESTAPIKEY }} | |
# - name: 📘 Publish to Nest | |
# run: | | |
# cd packages/port-search | |
# eggs publish --yes |