Skip to content

Commit

Permalink
ci: Use GITHUB_OUTPUT envvar instead of set-output command (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
arunsathiya committed Jan 25, 2024
1 parent 858396d commit 38a2d04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-npm-as-latest.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
- run: npm ci
- name: Get the version
id: version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_OUTPUT"
- run: npm version --no-git-tag-version ${{ steps.version.outputs.VERSION }}
- run: npm publish
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-npm-as-prerelease.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
- run: npm ci
- name: Get the version
id: version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_OUTPUT"
- run: npm version --no-git-tag-version ${{ steps.version.outputs.VERSION }}
- run: npm publish --tag prerelease
env:
Expand Down

0 comments on commit 38a2d04

Please sign in to comment.