Skip to content

Commit

Permalink
ci: fix publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rszyma committed Dec 3, 2023
1 parent a295190 commit 8275789
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
- name: Setup - git
run: |
git --version
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git status
- name: Setup - just
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Try bump kanata
run: |
status=$(just --quiet bump_kanata; echo $?)
status=$(just bump_kanata > /dev/null 2>&1; echo $?)
if [ $status -eq 0 ]; then
git push
elif [ $status -eq 123 ]; then
Expand Down Expand Up @@ -86,13 +86,14 @@ jobs:
cmd: 'jq .version package.json --raw-output --exit-status'

- name: Increment semver patch number
id: new-version
run: curl https://raw.githubusercontent.com/rszyma/shell-semver/master/increment_version.sh -sSf | sh -s -- -p ${{ steps.version.outputs.value }}
id: new_version
run: |
echo "value=$(curl https://raw.githubusercontent.com/rszyma/shell-semver/master/increment_version.sh -sSf | bash -s -- -p ${{ steps.version.outputs.value }})" >> $GITHUB_OUTPUT
- name: Setup - vsce
run: yarn global add vsce

- name: Build and publish
run: just pre_release ${{ steps.new-version.outputs.value }}
run: just pre_release ${{ steps.new_version.outputs.value }}
env:
VSCE_PAT: ${{ secrets.VSCE_ACCESS_TOKEN }}

0 comments on commit 8275789

Please sign in to comment.