Skip to content

Commit

Permalink
chore: refactors setting of env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeherp committed Apr 19, 2023
1 parent 40337a1 commit 8d77db2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ jobs:
git push origin HEAD:main
- name: Get current version
id: get_version
run: echo "::set-env name=PACKAGE_VERSION::$(node -p -e "require('./package.json').version")"
run: echo "PACKAGE_VERSION=$(node -p -e "require('./package.json').version")" >> $GITHUB_ENV
shell: bash
- name: Set previous version
id: set_previous_version
run: echo "::set-env name=PREVIOUS_VERSION::$(git describe --tags --abbrev=0)"
run: echo "PREVIOUS_VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
shell: bash
- name: Bump version
id: bump_version
run: |
npx semver --increment ${{ env.BUMP_TYPE }} ${{ env.PACKAGE_VERSION }} --preid=beta.${{ github.run_number }} -i -f -p 'beta' > version.txt
echo "::set-env name=NEW_VERSION::$(cat version.txt)"
echo "NEW_VERSION=$(cat version.txt)" >> $GITHUB_ENV
shell: bash
- name: Update package.json
run: |
Expand Down

0 comments on commit 8d77db2

Please sign in to comment.