Skip to content

Commit

Permalink
fix possible fix for #489
Browse files Browse the repository at this point in the history
  • Loading branch information
rrd108 committed Dec 27, 2024
1 parent 101191b commit 8aacb22
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/jsr-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,24 @@ jobs:
contents: read
id-token: write # The OIDC ID token is used for authentication with JSR.
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Checkout code at release tag
uses: actions/checkout@v4
with:
ref: ${{ github.ref }} # Use the tag that triggered the event

- name: Get the release tag name
id: get_tag
run: |
echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: yarn
- run: yarn install
- run: npx jsr publish --allow-dirty

- name: Install dependencies
run: yarn install

- name: Publish to JSR with version from tag
run: npx jsr publish --allow-dirty --tag ${{ steps.get_tag.outputs.tag }}
2 changes: 0 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ if [ $PREV_STEP -eq 1 ];then
echo "👉 Creating a new release on GitHub"
gh release create "v$new_version" --notes "$release_notes"

# npx jsr publish
# echo "👉 Published the new version to JSR"
else
echo -e $'\n' "${RED} \u2a2f Repository is not clean. ${NC} Please commit or stash your changes before running this script." $'\n'
exit 1
Expand Down

0 comments on commit 8aacb22

Please sign in to comment.