@reapit-cdk/wildcard-certificate_v0.0.5 #118
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: 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 |