Skip to content

Commit a643fdb

Browse files
authored
Merge pull request #10 from binary-blazer/binary-blazer-patch-1
Update publish.yml
2 parents b37015e + b8f486b commit a643fdb

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,7 @@ jobs:
3737
- run: npm install -g bun
3838
- run: bun install
3939
- run: bun run build
40-
- name: Determine the branch
41-
id: branch
42-
run: echo ::set-output name=branch::${GITHUB_REF#refs/heads/}
43-
- name: Set npm tag
44-
id: npm_tag
45-
run: |
46-
if [ "${{ steps.branch.outputs.branch }}" == "main" ]; then
47-
echo ::set-output name=tag::latest
48-
elif [ "${{ steps.branch.outputs.branch }}" == "canary" ]; then
49-
echo ::set-output name=tag::canary
50-
else
51-
echo ::set-output name=tag::${{ steps.branch.outputs.branch }}
52-
fi
5340
- name: Publish to npm
54-
run: npm publish --provenance --access public --tag ${{ steps.npm_tag.outputs.tag }}
41+
run: npm publish --provenance --access public --tag latest
5542
env:
5643
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)