Skip to content

Commit

Permalink
Publish bolt-s3 and bolt-dynamodb simultaneously
Browse files Browse the repository at this point in the history
  • Loading branch information
komiya-atsushi committed Jan 27, 2024
1 parent 92f9808 commit 348a3dd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,21 @@ jobs:
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
- name: Bump version
run: npm -w packages/bolt-s3 version ${{ inputs.target_element }}
run: |
npm version ${{ inputs.target_element }} \
--include-workspace-root \
--no-git-tag-version \
-w packages/bolt-s3 \
-w packages/bolt-dynamodb
- name: Get version string
id: get-version-string
run: echo "version=$(jq -r .version packages/bolt-s3/package.json)" >> "$GITHUB_OUTPUT"
- run: git add package-lock.json packages/bolt-s3/package.json
run: echo "version=$(jq -r .version package.json)" >> "$GITHUB_OUTPUT"
- run: |
git add \
package.json \
package-lock.json \
packages/bolt-s3/package.json \
packages/bolt-dynamodb/package.json
- run: git commit -m "v${{ steps.get-version-string.outputs.version }}"
- run: git tag "v${{ steps.get-version-string.outputs.version }}"
- run: npm ci
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ test:
docker compose down

publish: test
cp README.md LICENSE packages/bolt-s3/
npm -w packages/bolt-s3 run compile
npm -w packages/bolt-s3 publish --provenance --access public
npm -w packages/bolt-dynamodb run compile
npm -w packages/bolt-dynamodb publish --provenance --access public

.PHONY: test

0 comments on commit 348a3dd

Please sign in to comment.