Skip to content

Commit

Permalink
using RELEASE Env Var
Browse files Browse the repository at this point in the history
  • Loading branch information
bwebs authored Jun 4, 2024
1 parent f0e5bc3 commit dabaea7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo "github_tag_ref=${GITHUB_TAG_REF#v}" >> "$GITHUB_OUTPUT"
id: transform_tag
- run: echo "RELEASE=${GITHUB_TAG_REF#v}" >> "$GITHUB_ENV"
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
Expand All @@ -21,10 +20,10 @@ jobs:
with:
file: source/version.ts
old-string: local
new-string: ${{ steps.transform_tag.outputs.github_tag_ref }}
- run: echo ${{ steps.transform_tag.outputs.github_tag_ref }}
new-string: ${{ env.RELEASE }}
- run: echo ${{ env.RELEASE }}
- run: yarn
- run: yarn build
- run: yarn publish --new-version ${{ steps.transform_tag.outputs.github_tag_ref }}
- run: yarn publish --new-version ${{ env.RELEASE }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit dabaea7

Please sign in to comment.