-
Notifications
You must be signed in to change notification settings - Fork 428
68 lines (57 loc) · 1.78 KB
/
Copy pathpreview.yml
File metadata and controls
68 lines (57 loc) · 1.78 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: preview
permissions: {}
on:
push:
branches:
- master
pull_request:
paths:
- '**/*'
- '!.github/workflows/*.yml'
- '.github/workflows/preview.yml'
- '!assets/**'
- '!docs/**'
- '!example/**'
- '!site/**'
- '!test/**'
- '!.node-version'
- '!.nvmrc'
- '!.prettierignore'
- '!.prettierrc.json'
- '!*.md'
- '!deno.check*'
- '!deno.lint.json'
- '!docker-compose.yml'
- '!jsr.json'
- '!LICENSE'
jobs:
release:
concurrency:
cancel-in-progress: ${{ github.ref_name != 'master' }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
name: Release preview build
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: audit
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install pnpm
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
with:
cache: false # cache can be poisoned by malicious actors.
- name: Use Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: lts/*
package-manager-cache: false # cache can be poisoned by malicious actors.
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: pnpm with latest-10 install
- name: Build
run: pnpm with latest-10 build
- name: Release preview version
run: pnpm with latest-10 dlx pkg-pr-new@0.0.71 publish --template './example'