Skip to content

@reapit-cdk/cross-region-stack-export_v0.0.4 #115

@reapit-cdk/cross-region-stack-export_v0.0.4

@reapit-cdk/cross-region-stack-export_v0.0.4 #115

Workflow file for this run

name: Publish
on:
release:
types: [published]
env:
CI: true
jobs:
release-prod:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get Tag
uses: olegtarasov/get-tag@v2.1
id: tagName
with:
tagRegex: '(?<package>.*)_(?<version>.*)'
- name: Set Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'yarn'
- name: Install
run: yarn
- name: Build
run: yarn workspaces foreach -v -R --from ${{ steps.tagName.outputs.package }} run build
- name: Lint
run: |
yarn workspace ${{ steps.tagName.outputs.package }} run lint
- name: Test
run: |
yarn workspace ${{ steps.tagName.outputs.package }} run test
- name: Set Version
run: |
yarn workspace ${{ steps.tagName.outputs.package }} version ${{ steps.tagName.outputs.version }}
# - name: JSII Build (if needed)
# run: |
# yarn workspace ${{ steps.tagName.outputs.package }} run jsii:build
- name: Authenticate with NPM
run: |
yarn config set npmAuthToken ${{ secrets.CDK_NPM_TOKEN }}
- name: Publish to NPM
run: |
yarn workspace ${{ steps.tagName.outputs.package }} npm publish
# - name: Publish to PyPI (if needed)
# env:
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# run: |
# yarn workspace ${{ steps.tagName.outputs.package }} run jsii:publish