Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
johnchourajr authored May 30, 2024
1 parent 1e8e1d1 commit d231e1a
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,37 +16,3 @@ jobs:
- name: Publish with JSR
id: publish_jsr
run: npx jsr publish

tag_and_release:
runs-on: ubuntu-latest
needs: publish
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14' # or any version your project requires

- name: Install dependencies
run: npm install

- name: Get version from jsr.json
id: get_version
run: |
VERSION=$(jq -r '.version' ./jsr.json)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Create Git tag
env:
VERSION: ${{ env.VERSION }}
GH_PAT: ${{ secrets.GH_PAT }}
run: |
git tag -a "v$VERSION" -m "Release version $VERSION"
git push https://x-access-token:${GH_PAT}@github.com/johnchourajr/buen-type.git "v$VERSION"

0 comments on commit d231e1a

Please sign in to comment.