Skip to content

Commit

Permalink
let's do it
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Jan 31, 2025
1 parent e9017c8 commit a77f929
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,38 @@ name: Release

on:
push:
branches:
main
# branches:
# main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
check-package-version:
name: Check package version and detect an update
runs-on: ubuntu-20.04
outputs:
committed-version: ${{ steps.check-package-version.outputs.committed-version }}
published-version: ${{ steps.check-package-version.outputs.published-version }}
is-new-version: ${{ steps.check-package-version.outputs.is-new-version }}
steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Check package version and detect an update
id: check-package-version
uses: PostHog/check-package-version@v2
with:
# only supports one path - we'll cross that bridge when we come to it
path: 'packages/rrweb'
# check-package-version:
# name: Check package version and detect an update
# runs-on: ubuntu-20.04
# outputs:
# committed-version: ${{ steps.check-package-version.outputs.committed-version }}
# published-version: ${{ steps.check-package-version.outputs.published-version }}
# is-new-version: ${{ steps.check-package-version.outputs.is-new-version }}
# steps:
# - name: Checkout the repository
# uses: actions/checkout@v4
#
# - name: Check package version and detect an update
# id: check-package-version
# uses: PostHog/check-package-version@v2
# with:
# # only supports one path - we'll cross that bridge when we come to it
# path: 'packages/rrweb'

release:
name: Release (if new version)
runs-on: ubuntu-latest
needs: check-package-version
if: needs.check-package-version.outputs.is-new-version == 'true'
env:
COMMITTED_VERSION: ${{ needs.check-package-version.outputs.committed-version }}
PUBLISHED_VERSION: ${{ needs.check-package-version.outputs.published-version }}
# needs: check-package-version
# if: needs.check-package-version.outputs.is-new-version == 'true'
# env:
# COMMITTED_VERSION: ${{ needs.check-package-version.outputs.committed-version }}
# PUBLISHED_VERSION: ${{ needs.check-package-version.outputs.published-version }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
Expand Down

0 comments on commit a77f929

Please sign in to comment.