Skip to content

Commit ae4a0c5

Browse files
Main simplify release (#83)
* get full git history first * remove deprecated auth warning * use pnpm publish instead of npm * @instructure.ai/shared-configs@1.1.3 * lint * @instructure.ai/shared-configs@1.1.4 * Update .github/workflows/release-package.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update .github/workflows/release-package.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * update build script * properly invoke custom build script * simplify release script --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent abcf941 commit ae4a0c5

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

.github/workflows/release-package.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Publish Package
33

44
on:
55
push:
6-
branches:
7-
- main
86
tags:
97
- '@instructure.ai/*@*.*.*'
108

@@ -23,12 +21,6 @@ jobs:
2321
fi
2422
env:
2523
NPM_CONFIG_USERCONFIG: $HOME/.npmrc
26-
- name: Exclude shared-configs tags
27-
run: |
28-
if [[ "${GITHUB_REF_NAME}" == @instructure.ai/shared-configs*@* ]]; then
29-
echo "Tag matches excluded pattern (@instructure.ai/shared-configs). Skipping publish."
30-
exit 0
31-
fi
3224
- uses: actions/checkout@v4
3325

3426

@@ -43,14 +35,34 @@ jobs:
4335
- name: Install dependencies with pnpm
4436
run: pnpm install --frozen-lockfile
4537

38+
- name: Extract package name
39+
id: pkgname
40+
run: echo "PKG_NAME=$(echo \"${GITHUB_REF_NAME}\" | sed -E 's/@instructure.ai\/([^@]+)@.*/\1/')" >> $GITHUB_ENV
41+
4642
- name: Build
47-
run: pnpm build package ${{ github.ref_name }}
43+
run: |
44+
if [ "$PKG_NAME" = "shared-configs" ]; then
45+
echo "Skipping build for @instructure.ai/shared-configs."
46+
else
47+
echo "Building package: $PKG_NAME"
48+
pnpm build package "$PKG_NAME"
49+
fi
4850
4951
- name: Test
50-
run: pnpm test
52+
run: |
53+
if [ "$PKG_NAME" = "shared-configs" ]; then
54+
echo "Skipping test for @instructure.ai/shared-configs."
55+
else
56+
pnpm test
57+
fi
5158
5259
- name: Publish package with pnpm
53-
run: pnpm publish
60+
run: |
61+
if [ "$PKG_NAME" = "shared-configs" ]; then
62+
echo "Skipping publish for @instructure.ai/shared-configs."
63+
else
64+
pnpm publish
65+
fi
5466
5567
- name: Create GitHub Release
5668
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)