Skip to content

Commit 6826f5c

Browse files
authored
refactor: publish to the release branch (#63)
1 parent 8c65eb2 commit 6826f5c

77 files changed

Lines changed: 3041 additions & 209250 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/publish.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions: {}
10+
11+
concurrency:
12+
group: publish
13+
14+
jobs:
15+
publish:
16+
name: Publish
17+
runs-on: ubuntu-slim
18+
environment: release-branch
19+
permissions:
20+
contents: write
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
24+
25+
- name: Setup PNPM
26+
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
27+
28+
- name: Setup Node.js
29+
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
30+
with:
31+
node-version-file: '.node-version'
32+
cache: 'pnpm'
33+
34+
- name: Install Dependencies
35+
run: pnpm install --frozen-lockfile
36+
37+
- name: Build and place publishable artifacts
38+
run: pnpm dist
39+
40+
- name: Publish to release branch
41+
env:
42+
BRANCH: release
43+
SHA: ${{ github.sha }}
44+
GIT_USER_NAME: ${{ github.actor }}
45+
GIT_USER_EMAIL: ${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com
46+
WORKFLOW_FILES: repository-check.yml
47+
ACTION_DIRS: |
48+
get-changed-files
49+
pr-filter
50+
send-teams-notification
51+
validate-sbom
52+
verify-version-change
53+
install-internal-package
54+
lgtm
55+
validate-lock-files
56+
validate-node-versions
57+
pnpm-audit
58+
TAGS: |
59+
get-changed-files
60+
pr-filter
61+
send-teams-notification
62+
validate-sbom
63+
verify-version-change
64+
install-internal-package
65+
lgtm
66+
repository-check
67+
run: ./scripts/publish-actions.sh

.gitignore

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,17 @@ pnpm-debug.log*
1313
*.tgz
1414
.env
1515

16-
*/lib/
16+
**/lib/
17+
18+
# Published action output
19+
/get-changed-files/
20+
/pr-filter/
21+
/send-teams-notification/
22+
/validate-sbom/
23+
/verify-version-change/
24+
/install-internal-package/
25+
/lgtm/
26+
/validate-lock-files/
27+
/validate-node-versions/
28+
/pnpm-audit/
29+
/repository-check.yml

0 commit comments

Comments
 (0)