Skip to content

CD

CD #23

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@9bb56186c3b09b4f86b1c65136769dd318469633
with:
ref: main
persist-credentials: false
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@61680d0e9b02ff86f5648ade99e01be17f0260a4
with:
semantic_version: 19.0.2
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}