-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.15 KB
/
publish.yml
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
name: Publish Packages
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: true
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false
- name: Install dependencies
run: pnpm install --filter='./packages/*' --frozen-lockfile --prefer-frozen-lockfile
- name: Build packages
run: pnpm build --filter='./packages/*'
- name: Publish packages
run: |
for package in $(ls packages); do
if [ "$package" != "continuum" ] && [ "$package" != "tsconfig" ]; then
cd packages/$package
pnpm publish --no-git-checks
cd ../..
fi
done
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}