Skip to content

Bump the npm_and_yarn group across 1 directory with 3 updates (#358) #111

Bump the npm_and_yarn group across 1 directory with 3 updates (#358)

Bump the npm_and_yarn group across 1 directory with 3 updates (#358) #111

# SPDX-License-Identifier: Apache-2.0
# Licensed to the Ed-Fi Alliance under one or more agreements.
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
# See the LICENSE and NOTICES files in the project root for more information.
name: On Merge to Main
on:
push:
branches:
- main
permissions: read-all
env:
API_URL: https://api.github.com/repos/${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.PAT_ATTACH_TO_RELEASE }}
jobs:
create-pre-releases:
name: Create Pre-Releases
runs-on: ubuntu-latest
defaults:
run:
working-directory: Meadowlark-js
steps:
- name: Checkout the Repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set Version
id: set-version
run: |
version=v$(cat lerna.json | jq -r .version)
echo "version=$version" >> "$GITHUB_OUTPUT"
- name: Create Meadowlark Pre-Release
shell: pwsh
run: |
$version="${{steps.set-version.outputs.version}}"
$body = @{
tag_name = $version
target_commitish = "main"
name = $version
body = ""
draft = $false
prerelease = $true
generate_release_notes = $false
} | ConvertTo-Json
$headers = @{
Accept = "application/vnd.github+json"
Authorization = "Bearer ${{ env.GITHUB_TOKEN }}"
}
Invoke-RestMethod -Method POST -Uri ${{ env.API_URL }}/releases -Body $body -Headers $headers