chore: release main #922
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
on: | |
push: | |
branches: | |
- 'release-please**' | |
env: | |
CORE_PACKAGE: core | |
name: Audit Pending Releases | |
jobs: | |
npm-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.ref }} | |
# if this is an SDK release, make sure there are no pending releases for @openfeature/core | |
- name: Check for Pending Dependency PRs | |
if: ${{ !endsWith(github.ref_name, env.CORE_PACKAGE) }} | |
run: | | |
if [ $(gh pr list --search '"release ${{ env.CORE_PACKAGE }}" in:title' | wc -l) -gt 0 ]; \ | |
then echo "Pending @openfeaure/${{ env.CORE_PACKAGE }} release. Please release @openfeaure/${{ env.CORE_PACKAGE }} first!" && exit 1; \ | |
else echo "No pending @openfeaure/${{ env.CORE_PACKAGE }} releases"; \ | |
fi | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: "https://registry.npmjs.org" | |
cache: 'npm' |