Skip to content

refactor(port-data): move to deno 2 and refactor usages #22

refactor(port-data): move to deno 2 and refactor usages

refactor(port-data): move to deno 2 and refactor usages #22

Workflow file for this run

name: 💾 Test & Deploy Data Port
on:
pull_request:
branches:
- main
paths:
- "packages/port-data/**"
push:
branches:
- main
paths:
- "packages/port-data/**"
tags:
- 'hyper-port-data@*'
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-data
run: |
deno task test
env:
CI: true
publish:
if: startsWith(github.ref, 'refs/tags/hyper-port-data@')
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-data
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-data
# eggs publish --yes