Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoCat committed Jan 12, 2025
1 parent 6a6181d commit af207f2
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
push:
branches:
- main
- next
- testing
tags-ignore:
- "**"
paths-ignore:
Expand Down Expand Up @@ -159,17 +159,14 @@ jobs:
run: |
npm config set provenance true
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
echo ${{ github.ref_name }}
if ${{ github.ref_name }} == "main";
then
if [[ "${GITHUB_REF}" == "refs/heads/main" ]]; then
echo "On main branch, publishing with public access..."
# npm publish --access public
echo "Published main"
elif ${{ github.ref_name }} == "next";
then
elif [[ "${GITHUB_REF}" == "refs/heads/next" ]]; then
echo "On next branch, publishing with 'next' tag..."
# npm publish --tag next --access public
echo "Published next"
else
echo "Not a release, skipping publish"
echo "Not on a release branch, skipping publish"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit af207f2

Please sign in to comment.