Skip to content

Commit

Permalink
Modify package publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
komiya-atsushi committed Oct 18, 2024
1 parent 4c951c7 commit 1b5a5ea
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ on:
- patch

jobs:
test:
uses: ./.github/workflows/test.yaml

publish:
needs: test
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Test

on: push
on:
push:
workflow_call:

jobs:
test:
Expand Down
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
clean:
rm -rf coverage
rm -rf packages/bolt-s3/{dist,build}
rm -rf packages/bolt-dynamodb/{dist,build}

test:
docker compose up -d
docker compose exec localstack /home/localstack/wait-for-localstack.sh
npm run test
docker compose down

publish: test
npm -w packages/bolt-s3 run compile
publish:
npm -w packages/bolt-s3 run build
npm -w packages/bolt-s3 publish --provenance --access public
npm -w packages/bolt-dynamodb run compile
npm -w packages/bolt-dynamodb run build
npm -w packages/bolt-dynamodb publish --provenance --access public

.PHONY: test
.PHONY: clean test publish

0 comments on commit 1b5a5ea

Please sign in to comment.