Skip to content

Commit 0ad9c49

Browse files
committed
ci: fix publish action
1 parent 7b9bc5f commit 0ad9c49

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/publish.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,31 @@ jobs:
1616
- name: 🛠 Setup node
1717
uses: actions/setup-node@v3
1818
with:
19-
node-version: '16.x'
19+
node-version: "16.x"
2020
always-auth: true
21-
registry-url: 'https://registry.npmjs.org'
21+
registry-url: "https://registry.npmjs.org"
2222

2323
- uses: pnpm/action-setup@v2
2424
name: 📥 Download deps
2525
with:
2626
version: 8
2727
run_install: true
2828

29+
- name: 🐳 Setup Docker
30+
uses: docker/setup-compose-action@v1
31+
32+
- name: 🚢 Start containers
33+
run: docker compose up -d --build
34+
2935
- name: 🧪 Test
3036
run: pnpm test
3137
env:
32-
AWS_ACCESS_KEY_ID: 'test'
33-
AWS_SECRET_ACCESS_KEY: 'test'
38+
AWS_ACCESS_KEY_ID: "test"
39+
AWS_SECRET_ACCESS_KEY: "test"
40+
41+
- name: 🛑 Stop containers
42+
if: always()
43+
run: docker compose down
3444

3545
- name: 🏗 Build
3646
run: pnpm build

0 commit comments

Comments
 (0)