Skip to content

Commit

Permalink
Merge pull request #31 from flynneva/fix-actions
Browse files Browse the repository at this point in the history
update to use GITHUB_ENV
  • Loading branch information
flynneva authored Apr 23, 2021
2 parents 85f0d5a + 034b254 commit 2b0f8ce
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,19 @@ jobs:
- name: Build Release
run: npm run build
- name: Bump and Tag
id: bump
run: |
npm version minor --force -m "Version %s"
git remote add gh-origin https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git push gh-origin HEAD:main --tags
version=$(npm run env | grep npm_package_version | cut -d '=' -f 2)
echo "::set-env name=version::$version"
echo "version=$version" >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.bump.outputs.version }}
release_name: Release ${{ steps.bump.outputs.version }}
tag_name: ${{ env.version }}
release_name: Release ${{ env.version }}
body: ""

0 comments on commit 2b0f8ce

Please sign in to comment.