Skip to content

Commit

Permalink
chore(build): use github.ref_name over custom env
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGiddyLimit committed Feb 5, 2023
1 parent 8c43795 commit 275b782
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ jobs:
steps:
- uses: actions/checkout@master

# See: https://stackoverflow.com/a/58178121
- name: Set Env
run: echo "RELEASE_VERSION=$(node -pe "require('./package.json').version")" >> $GITHUB_ENV

- name: Build
run: |
node --version
Expand All @@ -30,6 +26,6 @@ jobs:
- name: Upload Release
run: |
hub release create -a plutonium-addon-automation.zip -a dist/plutonium-addon-automation/module.json -m "${{ env.RELEASE_VERSION }}"$'\n\n'"Version ${{ env.RELEASE_VERSION }}" ${{ env.RELEASE_VERSION }}
hub release create -a plutonium-addon-automation.zip -a dist/plutonium-addon-automation/module.json -m "${{ github.ref_name }}"$'\n\n'"Version ${{ github.ref_name }}" ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 275b782

Please sign in to comment.