We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4594fce commit cb4bb4eCopy full SHA for cb4bb4e
1 file changed
.github/workflows/release.yml
@@ -24,9 +24,8 @@ jobs:
24
with:
25
path: ~/.npm
26
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
27
- # Store the name of the release
28
- # See https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions
29
- - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
+ - run: echo "RELEASE_VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
+ - run: test -n "$RELEASE_VERSION"
30
- run: npm i
31
- run: npm version $RELEASE_VERSION --no-git-tag-version
32
- run: npm publish --access public
0 commit comments