-
Notifications
You must be signed in to change notification settings - Fork 194
34 lines (33 loc) · 962 Bytes
/
pr.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
name: "pr"
on:
pull_request:
branches:
- "main"
paths:
- ".changeset/**/*.md"
jobs:
release:
runs-on: "ubuntu-22.04"
if: github.event.pull_request.head.repo.full_name == github.repository # run only for original, non-fork PRs
steps:
- uses: "actions/checkout@v3"
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- uses: "actions/setup-node@v3"
with:
node-version: 18
cache: "npm"
- name: "Cancel previous runs"
uses: "styfle/[email protected]"
continue-on-error: true
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- run: "npm i"
- uses: "the-guild-org/[email protected]"
with:
tag: "alpha"
prepareScript: "npm build"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}