Skip to content

adding t3Env

adding t3Env #2

Workflow file for this run

name: Publish to npm
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: "https://registry.npmjs.org/"
- name: Install dependencies
run: npm install
- name: Bump version (if needed)
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
npm version patch -m "Release v%s [skip ci]"
git push origin main --follow-tags
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
body: "Auto-generated release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}