-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (34 loc) · 1.04 KB
/
release-deno.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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