Skip to content

Merge pull request #11 from btaens/feature/NodeBypass #58

Merge pull request #11 from btaens/feature/NodeBypass

Merge pull request #11 from btaens/feature/NodeBypass #58

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Bun.js
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Build project
run: bun run build
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
always-auth: true
registry-url: "https://registry.npmjs.org"
scope: '@saintno'
- name: Bump version
run: npm version patch --no-git-tag-version
- name: Update changelog
run: npm run version
- name: Commit changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m 'ci: bump version and update changelog'
git push
- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}