Skip to content

Commit

Permalink
🚦 ci: enable dev tag publishes
Browse files Browse the repository at this point in the history
  • Loading branch information
m1212e committed Nov 18, 2024
1 parent 3f90151 commit b1546cb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,16 @@ jobs:
run: bun run build
env:
REF_NAME: ${{ github.ref_name }}
- name: Set tag
id: tag
run: |
if [[ "${{ github.event.release.prerelease }}" == "true" ]]; then
echo "tag=dev" >> $GITHUB_OUTPUT
elif [[ "${{ github.event.release.prerelease }}" == "false" ]]; then
echo "tag=latest" >> $GITHUB_OUTPUT
fi
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./dist/package.json
package: ./dist/package.json
tag: ${{ steps.tag.outputs.tag }}

0 comments on commit b1546cb

Please sign in to comment.