Skip to content

Commit 0de5a3f

Browse files
committed
add test_packages_publishing.yml
1 parent 145748a commit 0de5a3f

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Test publishing to GitHub Packages
2+
3+
on:
4+
push:
5+
branches: [revert/migrate-angular-to-nx]
6+
env:
7+
NX_SKIP_NX_CACHE: true
8+
9+
jobs:
10+
build:
11+
name: Build packages
12+
runs-on: windows-latest
13+
outputs:
14+
packages: ${{ steps.filter.outputs.packages }}
15+
steps:
16+
- name: Get sources
17+
uses: actions/checkout@v4
18+
19+
- name: Set up nodejs
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '20'
23+
24+
- uses: pnpm/action-setup@v4
25+
with:
26+
run_install: false
27+
28+
- name: Get pnpm store directory
29+
shell: bash
30+
run: |
31+
echo "PNPM_STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
32+
33+
- uses: actions/cache@v4
34+
name: Setup pnpm cache
35+
with:
36+
path: |
37+
${{ env.PNPM_STORE_PATH }}
38+
.nx/cache
39+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
40+
restore-keys: |
41+
${{ runner.os }}-pnpm-store
42+
43+
- name: Install dependencies
44+
run: pnpm install --frozen-lockfile
45+
46+
- name: Set timestamp version
47+
if: ${{ env.SET_TIMESTAMP_VERSION == 'true' }}
48+
run: pnpx ts-node tools/scripts/set-timestamp-version
49+
50+
- name: Build npm packages
51+
env:
52+
BUILD_INTERNAL_PACKAGE: true
53+
run: pnpm run all:build

0 commit comments

Comments
 (0)