Skip to content

--allow-slow-types

--allow-slow-types #11

Workflow file for this run

name: Release
on:
push:
branches:
- deno-jsr
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
steps:
- name: Check out
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install dependencies
run: pnpm install
- name: Update ./src/*.ts for deno
run: node scripts/replace-files-for-deno.mjs
- name: Move files to ./deno folder
run: cp ./deno/deno.json README.md Mock-plugin.md CHANGELOG.md ./src/ && rm -f package.json
- name: Publish package to JSR of deno
run: cd src && ls && npx jsr publish --allow-slow-types