Skip to content
Myr

preview-release.yml

This file

Path

.github/workflows/preview-release.yml

29 lines · 772 bytes · YAML

Last changed by

update pnpm etc (#3512)Daishi Katobefore adoption8476d2c

History of this file

Take it

ci(.github/workflows): rename 'cr' to 'preview-release' (#3069)Wonsuk Choibefore adoption473cfbf

lines 1–2why, one step back
1name: Preview Release
2

update pnpm etc (#3512)Daishi Katobefore adoption8476d2c

lines 3–7why, one step back
3on:
4 push:5 branches: [main]6 pull_request:7 types: [opened, synchronize]

ci(.github/workflows): rename 'cr' to 'preview-release' (#3069)Wonsuk Choibefore adoption473cfbf

line 8why, one step back
8

workflow: stricter permissionsdaishibefore adoption889077c

lines 9–11why, one step back
9permissions:
10 contents: read11

ci(.github/workflows): rename 'cr' to 'preview-release' (#3069)Wonsuk Choibefore adoption473cfbf

lines 12–14why, one step back
12jobs:
13 preview_release:14 runs-on: ubuntu-latest

workflow: stricter permissionsdaishibefore adoption889077c

lines 15–17why, one step back
15 permissions:
16 contents: read17 pull-requests: write

ci(.github/workflows): rename 'cr' to 'preview-release' (#3069)Wonsuk Choibefore adoption473cfbf

line 18why, one step back
18 steps:

ci(.github/workflows): pin GitHub Actions to commit hashes (#3381)Wonsuk Choibefore adoption7fc3991

line 19why, one step back
19 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

workflow: stricter permissions 2daishibefore adoption6784d1e

lines 20–21why, one step back
20 with:
21 persist-credentials: false

update pnpm etc (#3512)Daishi Katobefore adoption8476d2c

lines 22–23why, one step back
22 - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
23 - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0

ci(.github/workflows): rename 'cr' to 'preview-release' (#3069)Wonsuk Choibefore adoption473cfbf

lines 24–29why, one step back
24 with:
25 node-version: 'lts/*'26 cache: 'pnpm'27 - run: pnpm install28 - run: pnpm run build29 - run: pnpm dlx pkg-pr-new publish './dist' --compact --template './examples/*'