-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (53 loc) · 1.84 KB
/
Copy pathrelease.yml
File metadata and controls
63 lines (53 loc) · 1.84 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
name: Release Libraries
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
registry-url: 'https://registry.npmjs.org'
- name: Restore Stencil build cache
uses: actions/cache@v4
with:
path: |
packages/web-components/.stencil
node_modules/.cache
key: stencil-${{ runner.os }}-${{ hashFiles('packages/web-components/src/**/*.tsx', 'packages/web-components/src/**/*.ts', 'packages/web-components/stencil.config.ts', 'pnpm-lock.yaml') }}
restore-keys: |
stencil-${{ runner.os }}-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Validate release policy (TD-28)
run: pnpm validate:release-policy
# Build all publishable libraries in dependency order (includes new Angular/React/Vue wrappers)
- name: Build all packages
run: pnpm build:all
- name: Create Release PR or Publish
id: changesets
uses: changesets/action@v1
with:
version: pnpm version-packages
publish: pnpm release
title: 'chore: version packages'
commit: 'chore: version packages'
env:
# Use a PAT when repository settings disallow GITHUB_TOKEN-created PRs.
GITHUB_TOKEN: ${{ secrets.CHANGESETS_TOKEN || secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}