fix cd-ts #99
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CD/@configu/ts | |
on: | |
push: | |
tags: | |
- 'ts/v*' | |
jobs: | |
cd-ts: | |
name: CD/@configu/ts | |
runs-on: ubuntu-latest | |
env: | |
PACKAGE_NAME: '@configu/ts' | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/deploy-start-action | |
id: deployment | |
with: | |
package-name: ${{ env.PACKAGE_NAME }} | |
slack-webhook: ${{ secrets.SLACK_WEBHOOK_URL }} | |
- uses: ./.github/actions/ts-env-action | |
- uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ secrets.AWS_REGION }} | |
# --- | |
# todo: convert npm to pnpm commands and handle docs publishing | |
# https://pnpm.io/workspaces#workspace-protocol-workspace | |
- name: Bump package version | |
run: | | |
pnpm --filter ${{ env.PACKAGE_NAME }} --filter @configu/node --filter @configu/browser exec \ | |
npm --no-git-tag-version version ${{ steps.deployment.outputs.release-version }} | |
- name: Build package code | |
run: | | |
pnpm run build | |
pnpm --filter @configu/browser run build:bundle | |
- name: Publish to npm | |
run: | | |
git diff | |
pnpm --filter ${{ env.PACKAGE_NAME }} --filter @configu/node --filter @configu/browser publish \ | |
--access public --provenance --no-git-checks --tag ${{ steps.deployment.outputs.release-channel }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# --- | |
- uses: ./.github/actions/deploy-end-action | |
if: always() | |
with: | |
package-name: ${{ env.PACKAGE_NAME }} | |
package-version: ${{ steps.deployment.outputs.release-version }} | |
slack-webhook: ${{ secrets.SLACK_WEBHOOK_URL }} |