This repository was archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
65 lines (54 loc) · 1.75 KB
/
release.yml
File metadata and controls
65 lines (54 loc) · 1.75 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
60
61
62
63
64
65
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Public Release
on:
push:
paths:
- ".github/**"
- "packages/**"
- "tooling/**"
- "modules/**"
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
env:
# NODE_OPTIONS: "--max-old-space-size=16384"
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Install
uses: ./.github.qkg1.topposite-actions/install
- name: Lint types and code
run: pnpm lint
- name: Run Component Tests
run: pnpm test:ci
env:
CI: true
- name: Build packages
run: pnpm build:ci
- name: Setup CI Git User
run: |
git config --global user.name "codebender828"
git config --global user.email "jbakebwa@163.com"
- name: Create release Pull Request or Publish to NPM
id: changesets
uses: changesets/action@v1
with:
publish: pnpm release
title: "ci(release): version packages and publish"
commit: "ci(release): version packages"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create @dev release
if: steps.changesets.outputs.published != 'true'
run: |
pnpm release:dev
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}