-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.23 KB
/
release.yml
File metadata and controls
53 lines (44 loc) · 1.23 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
name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
# prevents this action from running on forks
if: github.repository == 'resolid/react-ui'
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: write
steps:
- name: Checkout Repo
uses: actions/checkout@v6
- name: Install PNPM
uses: pnpm/action-setup@v6
with:
run_install: false
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24
registry-url: https://registry.npmjs.org/
cache: "pnpm"
- name: Install
run: pnpm install --frozen-lockfile --prefer-offline
- name: Test Packages
run: pnpm run test:packages
- name: Build Packages
run: pnpm run build:packages
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
title: "chore: release package(s)"
commit: "chore: release package(s)"
publish: pnpm changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}