Skip to content

Commit 31401b8

Browse files
committed
refactor: simplify version extraction in npm publish workflow
1 parent 60be3a2 commit 31401b8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,10 @@ jobs:
3939
with:
4040
node-version: ${{ env.NODE_VERSION }}
4141
registry-url: "https://registry.npmjs.org"
42-
- name: Extract version from tag
43-
id: version
44-
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
4542
- name: Build npm package
4643
run: deno task npm:build
4744
env:
48-
VERSION: ${{ steps.version.outputs.VERSION }}
45+
VERSION: ${{ github.ref_name }}
4946
- name: Publish to npm
5047
run: npm publish --provenance --access=public
5148
working-directory: ./npm

0 commit comments

Comments
 (0)