-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (32 loc) · 917 Bytes
/
preview.yml
File metadata and controls
41 lines (32 loc) · 917 Bytes
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
name: preview
on: [pull_request]
permissions:
contents: read
jobs:
preview:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: setup deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: build wasm
run: make
- name: Get Version
id: vars
run: echo ::set-output name=version::$(git describe --abbrev=0 --tags | sed 's/^v//')-pr+$(git rev-parse HEAD)
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: https://registry.npmjs.com
- name: Build NPM
run: deno task build:npm ${{steps.vars.outputs.version}}
- name: Publish Preview Versions
run: npx pkg-pr-new publish './build/npm'