Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions .github/workflows/release:create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ on:
- patch

permissions:
contents: read
id-token: write
contents: write
pull-requests: write

jobs:
Expand All @@ -32,15 +31,15 @@ jobs:

- id: analyze
run: |
if [[ '${{ inputs.package }}' == 'core' ]];
path = './'
file = 'package.json'
else if [[ '${{ inputs.package }}' == 'dart-indexer' ]];
path = './indexers/dart'
file = 'pubspec.yaml'
else if [[ '${{ inputs.package }}' == 'typescript-indexer' ]];
path = './indexers/typescript'
file = 'package.json'
if [[ '${{ inputs.package }}' == 'core' ]]; then
path='./'
file='package.json'
elif [[ '${{ inputs.package }}' == 'dart-indexer' ]]; then
path='./indexers/dart'
file='pubspec.yaml'
elif [[ '${{ inputs.package }}' == 'typescript-indexer' ]]; then
path='./indexers/typescript'
file='package.json'
fi

echo "path=$path" >> $GITHUB_OUTPUT
Expand All @@ -51,7 +50,7 @@ jobs:
id: update-version
run: |
CURRENT=$(yq -r '.version' ${{ steps.analyze.outputs.file }})
NEXT=$(npx semver "$CURRENT" -i "${{ inputs.semver }}")
export NEXT=$(npx semver "$CURRENT" -i "${{ inputs.semver }}")
yq '.version = env(NEXT)' ${{ steps.analyze.outputs.file }}

echo "next-version=$NEXT" >> $GITHUB_OUTPUT
Expand Down
Loading