Skip to content

CD

CD #30

Workflow file for this run

name: CD
on:
workflow_dispatch:
permissions: read-all
jobs:
deploy_prod:
name: Preparing Production release
if: ${{ github.repository == 'sws2apps/github-gcloud-cli' && github.ref == 'refs/heads/main' }}
environment:
name: Prod.env
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
strategy:
matrix:
node-version: [17.x]
steps:
- name: Checkout for release preparation
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: main
persist-credentials: false
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@b1b432f13acb7768e0c8efdec416d363a57546f2
with:
semantic_version: 19.0.2
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}