Skip to content

chore: bump tsx from 4.19.3 to 4.19.4 (#208) #177

chore: bump tsx from 4.19.3 to 4.19.4 (#208)

chore: bump tsx from 4.19.3 to 4.19.4 (#208) #177

Workflow file for this run

name: Release
on:
push:
branches:
- 'main'
permissions:
contents: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: '0'
token: ${{ secrets.TOKEN_GITHUB_TO_GITHUB_REPOSITORIES_RW }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Install dependencies
run: |
npm ci
- name: Run QA
run: |
npm run qa
- name: Get next version
id: get_next_version
uses: thenativeweb/[email protected]
- name: Create new version
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
run: |
npm version --no-git-tag-version ${{ steps.get_next_version.outputs.version }}
git config --global user.email "[email protected]"
git config --global user.name "${{ github.actor }}"
git add .
git commit -m 'chore: Bump version to ${{ steps.get_next_version.outputs.version }}. [skip ci]'
git push
git tag ${{ steps.get_next_version.outputs.version }}
git push origin ${{ steps.get_next_version.outputs.version }}
- name: Build artifacts
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
run: |
npm run build
- name: Publish new version
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.TOKEN_GITHUB_TO_NPM_RW }}" >> .npmrc
npm publish