This repository was archived by the owner on Oct 30, 2025. It is now read-only.
forked from bridge-core/molang
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.38 KB
/
build.yml
File metadata and controls
59 lines (49 loc) · 1.38 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
name: Quality & Release
on: [push]
concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
id-token: write
contents: read
jobs:
quality:
name: Quality
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Install Node
uses: LunarClient/actions/setup-node@master
with:
node_version: 18
node_scope: "@LunarClient"
github_token: ${{ secrets.GITHUB_TOKEN }}
npm_token: ${{ secrets.NPM_TOKEN }}
- name: Build Packages
run: pnpm build
- name: Run Tests
run: pnpm test
- name: Check Types
run: pnpm types
release:
name: Release
runs-on: ubuntu-latest
needs: quality
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Install Node
uses: LunarClient/actions/setup-node@master
with:
node_version: 18
node_scope: "@LunarClient"
github_token: ${{ secrets.GITHUB_TOKEN }}
npm_token: ${{ secrets.NPM_TOKEN }}
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN }}