generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 998 Bytes
/
check-dist.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: Check dist/
concurrency:
group: check-dist-${{ github.ref_name }}
cancel-in-progress: true
on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
check-dist:
runs-on: ubuntu-latest
if: "!startsWith(github.event.head_commit.message, 'Merge') || github.event.pull_request.draft == false"
steps:
- name: Checkout Github
uses: actions/checkout@v3.1.0
- name: Set Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Rebuild the dist/ directory
run: |
yarn build
yarn package
# If index.js was different than expected, upload the expected version as an artifact
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/