Skip to content

fix: migrate to newer action (#3) #26

fix: migrate to newer action (#3)

fix: migrate to newer action (#3) #26

Workflow file for this run

name: Release
on:
push:
branches:
- master
env:
HUSKY: 0 # https://typicode.github.io/husky/how-to.html#ci-server-and-docker
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# Needed for nx-set-shas within nx-cloud-main.yml, when run on the master branch
permissions:
actions: read
contents: write
deployments: write
pull-requests: write
id-token: write
jobs:
Process:
runs-on: ubuntu-latest
outputs:
releases_created: ${{ steps.release-please.outputs.releases_created }}
prs_created: ${{ steps.release-please.outputs.prs_created }}
steps:
- uses: googleapis/release-please-action@d1a8f221d7723166f48a584aebba00ef3f6febec # v4.1.4
id: release-please
with:
token: ${{secrets.RELEASE_PLEASE_TOKEN}}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
- name: Print Release Data
run: |
echo 'Release Data:'
echo '''
${{ toJSON(steps.release-please.outputs) }}
'''
Deploy:
needs: Process
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Asdf
uses: ./.github/actions/setup-tooling
with:
SetupCommand: ./setup.sh
- name: Yarn
uses: ./.github/actions/setup-yarn
- name: Preflight
run: |
just lint
just types
just unittest
just build
just integrationtest
- if: ${{ needs.Process.outputs.releases_created == 'true' }}
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: just publish