-
Notifications
You must be signed in to change notification settings - Fork 644
52 lines (44 loc) · 1.5 KB
/
build-precompiled.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
46
47
48
49
50
51
52
name: Build precompiled JavaScript file
on:
push:
branches:
- enhanced
paths:
- '*.js'
- 'src/**.js'
- '.github/workflows/*.yml'
- 'package.json'
- 'yarn.lock'
workflow_dispatch:
jobs:
build-precompiled:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cleanup precompiled
run: rm -rf precompiled/*
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install dependencies
run: yarn
- name: Build the precompiled package
run: yarn build
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ github.token }}
commit-message: 'build(precompiled): make a bundle with the dependencies'
author: 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>'
branch: ci/build-precompiled
delete-branch: true
title: 'build(precompiled): make a bundle with the dependencies'
body: |
Merge till a new release tagged.
labels: ci:build